Ok guys My .htaccess is like this RewriteEngine On RewriteBase / RewriteRule ^(.*)/(.*)/(.*)/(.*)/(.*)$ http://www.mysite.com/$1/$2/$3/$4/$5 Code (markup): I Need help now i want it such that sixth query is also possible but the 6 th query is runned only sometimes. if i add 1 more (.*) i get not found error if i run 5 queries and only works if 6 queries are available Please help me out
RewriteEngine On # If 5 sub dirs RewriteCond %{REQUEST_URI} ^(.*)/(.*)/(.*)/(.*)/(.*)$ RewriteRule ^/(.*)/(.*)/(.*)/(.*)/(.*)$ http://www.mysite.com/$1/$2/$3/$4/$5 [L] # If 6 sub dirs RewriteCond %{REQUEST_URI} ^(.*)/(.*)/(.*)/(.*)/(.*)/(.*)$ RewriteRule ^/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)$ http://www.mysite.com/$1/$2/$3/$4/$5/$6 [L] Code (markup):