How to make backslash based URL with .htaccess? -


my site in php. want convert following..

domain.com/download.php?type=wallpaper&id=123456&name=windows-7

to this..

domain.com/download/wallpaper/123456/windows-7.html

i want people make second link work in page. when 1 open second link open page have in first link. idea? thanks.

you can use mod_rewrite so:

rewriteengine on rewriterule ^download/([^/]+)/([^/]+)/([^/]+)\.html$ download.php?type=$1&id=$2&name=$3 

Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -