homepage Welcome to WebmasterWorld Guest from 54.226.213.228
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Redirect Directory to new Subdomain
matthewamzn




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

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




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

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved