Jump to content

Recommended Posts

Posted

Hello,

 

I am using an .htaccess in my root public_html directory to redirect traffic to another domain name, using this format:

 

Redirect / http://domain.com/

 

However, I would like to allow some directories to stay local, meaning I'm hoping to make all files redirect to another domain except the files in /members, for example. Is there a way to do this without listing individually each file/directory that I would like redirected?

 

Thanks!!

Posted (edited)

Well if you want some directories redirected and others not, then you will have to add redirects for each directory that you want redirected.

 

The proper format would be:

 

 

Redirect /OldDirectory http://www.YourSite.com/NewDirectory/

Edited by TCH-Scott
Posted

There is only one directory I don't want to forward. For that reason, I'd rather find a command to exclude one directory instead of needing to include a list of 100 frequently-changing directories. Ideas?

 

Thanks.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...