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

  • Home
  • SEARCH
  • 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 9270453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:22:26+00:00 2026-06-18T15:22:26+00:00

I have a working site and dev site.The htaccess code in dev site starts

  • 0

I have a working site and dev site.The htaccess code in dev site starts with

RewriteCond %{HTTP_HOST} ^abc\.co\.uk$
RewriteRule (.*) http://www.abc.co.uk/dev2$1 [NC,R=301,L]

Where dev2 is the folder name under root.But whenever I click a link from dev2 site it is redirecting to the live site. I think the problem is in the second line?

  • 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-18T15:22:28+00:00Added an answer on June 18, 2026 at 3:22 pm

    Try

    RewriteCond %{HTTP_HOST} abc\.co\.uk$
    RewriteRule (.*) http://www.abc.co.uk/dev2/$1 [NC,R=301,L]
    

    or the more verbose:

    RewriteCond %{HTTP_HOST} ^abc\.co\.uk$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.abc\.co\.uk$
    RewriteRule (.*) http://www.abc.co.uk/dev2/$1 [NC,R=301,L]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got jQuery Masonry working on my site http://www.lovejungle.com/dev/testenvironment/?cat=4 But for the life of
Here is the site mock-up I'm working on for my job: http://dev.arm.gov/~noensie/dqhands/cgi-bin/explorer . I'm
I have a site that uses require.js (www.easyzag.com). It is working great on chrome/FF
Our dev site has the slider working perfectly here: http://allblacks.01dev.co.nz/index.cfm?layout=dnaHome However, we've just put
I have a load balanced dev site that I'm working out bugs for SSL
I have been working on a site for about a week now and we
I have been working on a site that relies heavily on images, and so
I have a working copy of asp.net mvc site locally. I just uploaded the
I have been working on building my first CSS site using divs and am
I have to make some mods to an existing (and working) magento site. So

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.