I have been trying to remove index.php from my application since a day. I have tried everything but am not able to remove it. The problem is - I am not allowed to have .htaccess
file in the project directory and the config in .htaccess file which works on my local dev machine does not work there.
The config I have on my local machine is:
# Rules to serve URLs which point to files directly
# ----------
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
I am aware that I cannot use RewriteBase directive inside the host configuration file (/etc/apache2/sites-available/000-default.conf/000-default.conf). However disabling that doesn't work either.
Why is this problem so difficult? There are a lot more complicated redirections that are working perfectly, but there seems to be no definite solution to removal of index.php from the URL!
EDIT: It is installed on a Ubuntu 14.04 machine.
No comments:
Post a Comment