Routing issue in Codeigniter 3.0.5 on server - php

I have issue regarding URL in Codeigniter on server.
Actually, Site was working before shared hosting server like http://example.com/login
But after change server dedicated and integrate SSL, the site not working inner pages. Like https://example.com/login where got below issue:
Not Found
The requested URL /login was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
But home page open https://example.com It might some issue related rewrite or else. I tried using .htaccess also but nothing changed.
Site page is open using add /index.php in between like https://example.com/index.php/login
Any one have idea or trick to sortout it.
Thanks

Related

All links give 404 Not Found when I moved the Drupal site to a web host

I uploaded my drupal site on the web-host. I use a web host:aiwebhost.com. But when I click any link on my site I get error:
Not Found
The requested URL was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I found a similar question on stackoverflow:
Drupal 8.5.4 all links give 404 Not Found
But there the question concerned the local server. But I have error on the web host
In local server my site working well
How to fix it?
Solution: The error occurred because the .htaccess file was not added to the web host

Silverstripe not working on Plesk Server

I am trying to create a new domain which runs on SilverStripe 3.0. I am unable to figure out the issue. If I upload a custom php page then it runs fine, but my website is not working. It shows blank page but shows the favico.
If I try to open up www.mydomain.com/admin/, I get the error
Page Not Found
The requested URL /admin/pages was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
This is not a Silverstripe error page. Here is my php info Info
Please let me know if I am missing something or there is any way to figure out the issue.
Try www.yourdomain.com/index.php/admin
If that works then it is because your rewrites are not working. This can be because .htaccess isn't configured properly, or because .htaccess is not used at all (in which case you need to edit your server config).
Last I used Plesk it always used apache. If that is different now and you're using nginx as more than a forward proxy, then you will need to set up the redirects for your site manually.
It does sound like your .htaccess is not being respected. Does Plesk allow overrides for .htaccess in the local directory?
At an apache level we would have something like this stanza to ensure the the .htaccess of the project was respected;
AllowOverride All
If your .htaccess is being processed, make sure that your host has mod_rewrite enabled as that is required to access to pretty URLS.

Codeigniter 404 Error on Bluehost

So I installed Codeigniter in a sub directory on my bluehost hosting account after testing it locally and everything working great! But now when I goto the subdirectory on bluehost I get taken to the right index page which is set in my routes as this:
$route['default_controller'] = "user";
So that works. But when I try to go to any other page for instance.."/user/reg_view". It gives me nothing but 404 errors. I've tried different things on the htaccess file and I've also tried changing the URI protocol in the config to AUTO and also REQUEST_URI but nothing works. It just always gives me a 404 error.. any thoughts or suggestions?
Thank you.

Codeigniter on IIS web.config issue

I am installing a site made in PHP/CodeIgniter 2 on a hosting server which unfortunately has IIS running, which I have no experience in.
Nothing is working except the homepage, all other pages are returning 404 errors.
Adding index.php to the url returns 500 - Internal server error (I have the index page config set to '' in the config.php file)
I tried also creating a web.config file thinking the issue might be from the redirects, but adding a web.config file stops even the homepage from working, even if the web.config file added is completely empty.
Help really appreciated.
Check if the hosting server has Re-write module installed in it, that could be your problem.
Make sure you had installed URL Rewrite -
http://www.iis.net/downloads/microsoft/url-rewrite
After you had installed the module you should able to see this icon (URL Rewrite) in your IIS Management.

Standard 404 Error NOT displaying.

I have a website (URL: http://www.fromthepitch.com). There seems to be a problem with it issuing error codes. For some reason instead of 404 error page it displays the home page. http://www.fromthepitch.com/asdsad is meant to show a 404 page but instead displays the home page. Any suggestions on how to solve this problem.
in your .htaccess set this line
ErrorDocument 404 /error_404.html
and you customise your error_404.html page
I have a shared hosting account. The domain for fromthepitch.com was in a sub folder of this domain for retailerwork.com which is the main domain on the hosting account. fromthepitch.com's htaccess was being overwritten by retailerwork.com's htaccess. Vidahost my hosting company helped me solve this in a matter of moments on their support line. I hade to turn the RewriteEngine off before inserting the line of code to point to a custom 404 page. I just did not have the knowledge to understand. Maybe if i put more information it would have been clear. Sorry about that.

Categories