i have the following code
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteRule ^releases/([a-z]*)/$ releases.php?go=$1 [NC,L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)$ $1.php?%1 [NC,L,QSA]
The way i access this is
domain.com/subdir/releases/data
This how ever gets the redirect done but it breaks all the css images js etc.
Could anyone suggest an alternate. Thnx
and i want to include the condition to check if file is releases.php
RewriteCond %{REQUEST_FILENAME} ^/releases/(.*)$
would that work ? thnx
RewriteCondto exclude css/etc. from rewriting. Or use<base href=>to reroute resource references in your html pages.RewriteRule ^releases/([a-z]*)/$ releases.php?go=$1 [NC,L,QSA]?