Forum Moderators: phranque

Message Too Old, No Replies

Redirect Directory to new Subdomain

         

matthewamzn

4:03 pm on Jan 17, 2008 (gmt 0)

10+ Year Member



I'm trying to redirect urls from my old directory to a new subdomain. I put this .htaccess file in the old directory, but it's not working that good in internet explorer.

RewriteEngine ON
RewriteRule ^(.*)$ http://subdomain.example.com.com/$1 [R=301,L]

[edited by: jdMorgan at 1:30 am (utc) on Jan. 18, 2008]
[edit reason] example.com [/edit]

jdMorgan

1:33 am on Jan 18, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There's nothing wrong with the code you posted, so we'll need more information. "It's not working" really tells us nothing at all...

How did you test?
What were the results?
How did those results differ from what you expected?

Thanks,
Jim