Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8128829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T08:03:34+00:00 2026-06-06T08:03:34+00:00

I was wondering how to exclude a subfolder from .htaccess redirect. I have an

  • 0

I was wondering how to exclude a subfolder from .htaccess redirect.

I have an .htaccess file in the root of my old domain and I have the following in it:

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L] 

This of course redirects any traffic from the old domain to the new one. But I want to exclude a directory from this rule. Meaning http://www.olddomain.com/media/videos should not redirect to http://www.newdomain.com/media/videos

The reason I want the exclusion is because I’m hosting static files such as videos on a shared web server (old domain) and I’m keeping everything else the site needs on the new VPS server (new domain).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T08:03:36+00:00Added an answer on June 6, 2026 at 8:03 am

    Just put RewriteCond %{REQUEST_URI} !^/media/videos above your RewriteRule. It checks wether the URL starts with /media/videos and if it does so, the RewriteRule will not be met.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i'm wondering how to exclude certain members from one dimension that have links with
Just wondering if its possible to exclude large files or certian file types from
I have the following xslt sheet and I am wondering if its possible to
We have a requirement for a dexterity content type to have exclude from navigation
I'm just wondering, is it possible to exclude a page (say, the login.jsp) from
I'm wondering whether it is possible to exclude several source files from a folder
I was wondering if there was a way to ignore a css file from
Wondering if there is any way to get the lambda expressions that result from
Wondering if anyone can suggest a good file replication tool that will replicate across
Wondering if following will work for google in robots.txt Disallow: /*.action I need to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.