My apache httpd.conf file has following
NameVirtualHost 11.91.91.97 <VirtualHost:11.91.91.97> ServerName creditrepair.com DocumentRoot /var/www/credit <Directory /var/www/credit > DirectoryIndex app.php Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny allow from all </Directory> </VirtualHost> In my credit folder I have .htaccess file which contain the following
< IfModule mod_rewrite.c > RewriteEngine On RewriteBase /creditrepair RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ app.php [QSA,L] RedirectMatch ^/$ /app.php/ < /IfModule > What I want to achieve is that ipnum/credit/app.php/home is rewritten as ipnum/credit/home
I have enabled mod_rewrite.
It doesn't work and I have no idea why.
Any suggestions?