mod_rewrite question
Posted: Sat Jan 16, 2010 6:57 pm
Hello all,
I have the following rewrite rule setup
Basically, this allows me to do something like http://www.domain.com/productname/?some=1&another=2 and gives me productname as the product variable.
Now, I want to have it so I can maintain this /productname/ url but access other pages, so for example
http://www.domain.com/productname/register.php , where register.php lies on the root domain... Any ideas how I can do this?
Thank you!
I have the following rewrite rule setup
Code: Select all
RewriteEngine on
RewriteRule ^([^/\.]+)/?$ product.php?product=$1&%{QUERY_STRING} [L]
RewriteCond %{REQUEST_FILENAME} -f [NC,OR]
RewriteCond %{REQUEST_FILENAME} -d [NC]
RewriteRule .* - [L]
Now, I want to have it so I can maintain this /productname/ url but access other pages, so for example
http://www.domain.com/productname/register.php , where register.php lies on the root domain... Any ideas how I can do this?
Thank you!