Jump to content

MOd rewrite Help


techcone

Recommended Posts

I want the rewrite urls to be worked like.

 

www.domain.com/name1 == www.domain.com/page.php?name=name1

www.domain.com/name2 == www.domain.com/page.php?name=name1

www.domain.com/name1/value1 == www.domain.com/newpage.php?value=value1

 

etc..

 

Now,

I am trying this rewrite, But it doesn't seems helping.

 

RewriteRule ^(.*)$ page.php?name=$1 [NC]

RewriteRule ^(.*)/(.*)$ newpage.php?value=$2 [NC]

Link to comment
https://forums.phpfreaks.com/topic/146413-mod-rewrite-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.