Jump to content

RewriterRule


binumathew

Recommended Posts

I have a rewrite rule in my .htaccess file

 

RewriteRule ^(\w+)$ user.php?id=$1
RewriteRule ^search$ /search/

 

The Above code is not working properly

 

mydomain.com/username should redirect to user.php?id=username this work wonderfull

What i need is

mydomain.com/search should redirect to search.php

how can it possible?

Link to comment
https://forums.phpfreaks.com/topic/189560-rewriterrule/
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.