Jump to content

htaccess redirection


sugan

Recommended Posts

I dont know how to redirect an url in an htaccess file which contains three arguments as:

site/index.php?coun=india&year=2008&ee=list

I need it to be as :

site/india-2008-list

How to do it! How to write redirect cond and rule for it?Pls help!Regards,Suganya

Link to comment
Share on other sites

This may work (no Regex errors):

RewriteRule ^([a-z]+)\-((1|2)[0-9]{3})\-([a-z]+)$ /index.php?coun=$1&year=$2&ee=$4

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...