.htaccess - 301 redirect that carries a variable to new URL (using htaccess) -


i need redirect pages of old website new website using htaccess. of old site's urls have parameter variable. variable ideally carried on new url. example,

old: http://old-website.com/index4.php?show=1590

new: http://new-website.com/performance/1590

notice variable "1590" carried new urls. i'm still learning regex , htaccess can working right. here left off...

rewriteengine on rewritecond %{query_string} page=/index4.php?show=([0-9]+) rewriterule ^/?(index4.php)?$ http://showfile.fm/performance/%1? [l,r=301] 

i need homepage , other pages without variables redirect specific pages. i'm not sure how stack other rules - if there necessary order.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -