...

View Full Version : (Basic) Joining rewrite rule in htaccess



basketmen
09-26-2010, 05:39 PM
I have these rewrite rules



RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !(file1.php)
RewriteCond %{REQUEST_URI} !(file2.php)
RewriteCond %{REQUEST_URI} !(file3.php)
RewriteRule ^/?(af|sq|ar)/([^/]+)/?$ /index.php?z-profile=$2&language=$1 [L,QSA]
#RewriteRule ^/?(af|sq|ar)/([^/]+)/?$ vseo.php?bet_lang=$1&redirected=/index.php?z-profile=$2 [L,QSA]
#RewriteRule ^([^/]+)/?$ index.php?z-profile=$1 [QSA]



i want to joining the rewrite rules in bold above so maybe can make it faster and short, what is looks like, thanks for sharing answer guys

abduraooft
09-26-2010, 06:09 PM
Try
RewriteCond %{REQUEST_URI} !(file1.php|file2.php|file3.php)

basketmen
09-26-2010, 06:51 PM
many thanks its working, rep+ added :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum