.htaccess with $1 and $2 doesn't work
Posted: Tue May 01, 2007 3:48 pm
Code: Select all
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/img/.*
RewriteRule ^([A-Za-z0-9]+)$ /$1/ [R]
RewriteRule ^([A-Za-z0-9]+)/$ /index.php?page=$1Code: Select all
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/img/.*
RewriteRule ^([A-Za-z0-9]+)/([A-Za-z0-9]+)$ /$1/$2/ [R]
RewriteRule ^([A-Za-z0-9]+)/([A-Za-z]+)/?$ /index.php?page=$1&plugin=$2If i enter:
myurl.com/welcome/search/ >> works
myurl.com/welcome/ >> doesn't work anymore if I use the second htaccess content