Quote:
Originally Posted by MKA
That made the site crash to be honest 
But thanks to that site i got pointed into the right direction and so far i did this
RedirectMatch 301 /entry/(.*)/ http://old.mydomain.com/entry/$1
Eventually this is the url that you enter: http://old.mydomain.com/entry/2190
Still missing the txt AFTER the video id (in this case 2190)
|
sorry my bad.,
it was meant for directories and not for subdomains.
so you want www to go to old
//Rewrite to www
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^
www.mydomain.com[nc]
RewriteRule ^(.*)$ http://old.mydomain.com/$1 [r=301,nc]
################################################
so you want old to go to www
//Rewrite to www
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^old.mydomain.com[nc]
RewriteRule ^(.*)$ http://www.mydomain.com/$1 [r=301,nc]
you can add QSA too at the end.