rewriting folders, need help

ISAPI_Rewrite is a powerful URL manipulation engine based on regular expressions
User avatar
Posts: 4
Joined: 26 Jan 2013, 20:32

rewriting folders, need help

26 Jan 2013, 20:36

Hi

i have some urls that have no file type listed and i want to direct them to a specific page.

for example i want:

mydomain.com/someproductname to direct to product.php?name=someproductname

i looked through the examples on here and couldnt find anything like this.

i tried
RewriteRule ^someproductname \(.*) product.php [QSA]

any help is appreciated.
THANKS
sam

User avatar
Posts: 19
Joined: 21 Mar 2012, 06:22

Re: rewriting folders, need help

27 Jan 2013, 14:34

RewriteRule /someproductname /product.php\?name=someproductname [I,L]

User avatar
Posts: 4
Joined: 26 Jan 2013, 20:32

Re: rewriting folders, need help

27 Jan 2013, 15:17

thanks!

Return to ISAPI_Rewrite 2.x

Who is online

Users browsing this forum: No registered users and 0 guests