Reputation: 2584
I am trying to use my .htaccess to modify my URL from:
<myURL>/index.php/something/something
to
<myURL>/something/something
However, while adding the rewriterules
in the .htaccess
file, the ErrorDocument
directives are not being followed. Is there any way that I can achieve this, while removing the "index.php"?
The contents of my .htaccess are:
DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,L]
ErrorDocument 404 "message failed"
</IfModule>
My httpd.conf contains:
<Directory /var/www/<myURL>...>
allow from all
Options Indexes FollowSymLinks Includes
AllowOverride all
order allow,deny
</Directory>
I have been trying to fix this for days. Any help is greatly appreciated! :-)
Upvotes: 0
Views: 330