CodeIgniter Forums
Unable to remove index.php on Google Cloud server. - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forum-9.html)
+--- Thread: Unable to remove index.php on Google Cloud server. (/thread-71890.html)



Unable to remove index.php on Google Cloud server. - rahul - 10-05-2018

Hello,

I have unable to remove index.php in my URl. I used google cloud server and codeigniter files are hosted in wordpress website directory.
My URL : http://ddrws.in/util/visitor/index.php/user/login , when i remove index.php and run this error shown..
Oops! That Page Can’t Be Found.

It looks like nothing was found at this location. Maybe try one of the links below or a search?


I also used all code of .htaccess and config.php file.

Please help me , Thanks in advance..


RE: Unable to remove index.php on Google Cloud server. - Gurutechnolabs - 10-13-2018

I am not sure but maybe this will work. I think you have to check.htaccesss file properly or you can remove it and then check.


RE: Unable to remove index.php on Google Cloud server. - dave friend - 10-14-2018

First, make sure that the web server has mod_rewrite enabled.

If it is enabled then you need to check if .htaccess is being handled. You can easily do that by putting useless text in the first line of the file. Any word will do as long as it is not a valid .htaccess command. Direct a web browser to the site. If the site shows then .htaccess is not being read. What you should see is 500 Internal Server Error message. Remove the change you made to .htaccess before you do more troubleshooting.

Let us know what happens.