Home » Htaccess Tools » Htaccess Questions  » Redirecting Root and Files to Different Locations
Redirecting Root and Files to Different Locations [message #1938] Tue, 20 July 2010 22:03
tempuser123  is currently offline tempuser123
Messages: 1
Registered: July 2010
Greetings,

I'm kinda new to .htaccess and I searched a lot but couldnt understand how to work this out.

What I basically need is this:

I want www.olddomainname.com and olddomainname.com to redirecto to www.newdomainname.com (this is kinda easy on its own ... the next step is the kicker)

I want www.olddomainname.com/anyfileorfolder and olddomainname.com/anything to redirect to : www.newdomainname.com/newsubfolder/anything

Notice that if no file/folder is given, I want the redirect to be to a different path than if a file/folder is given

Is this doable?

Thank you for your help
Previous Topic:Deny access to .php files to users, but not scripts
Next Topic:.htaccess to manage client's FTP folders
Goto Forum:
  


Current Time: Sat Feb 4 03:35:00 CET 2012

Powered by: FUDforum 3.0.0.
Copyright ©2001-2009 FUDforum Bulletin Board Software