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 6815345
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:47:45+00:00 2026-05-26T20:47:45+00:00

Earlier i have installed my code in the main domain itself. for instance, www.abcd.com/xyz/page.html

  • 0

Earlier i have installed my code in the main domain itself. for instance,

http://www.abcd.com/xyz/page.html

there are about 300 pages indexed by google with the old URL.

Now i have removed that code from the main domain and installed the code in Sub-Domain. So it make all the URLs indexed by Google and all the backlinks are pointing to the old URL.

Now i need to point all the old invalid URL to new Valid URL when Users clicks on the old URL.

Please suggest how to handle this.

Thanks a lot…

  • 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-05-26T20:47:46+00:00Added an answer on May 26, 2026 at 8:47 pm

    If you are using Apache, I suggest that you use mod_rewrite as it allows to send the HTTP status 301 Moved Permanently, informing search engines that the contents of your website has been moved to a new location (rather than just deleted).

    In a .htaccess file:

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

    The first line enables URL “rewriting”, the fancy term for redirections of all kind. The second line is decomposed like this:

    • RewriteRule is the directive to match URLs and change the place they point to;
    • (.*) is a regular expression matching any requested file path (without an initial slash)
    • http://newdomain.mysite.com/$1 is the place where you want to send your visitors, and $1 is expanded to the previously matched path
    • [R=301,L] tells Apache to send the 301 Moved Permanently HTTP status code, and that it’s the last RewriteRule that can match this request (it’s useful only when you have multiple RewriteRules but it doesn’t hurt to have it anyways).

    The next time crawlers visit your site, they will notice the HTTP status and update their links to your new address. You should have it set up as soon as possible before Google thinks your whole site went 404.

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

Sidebar

Related Questions

We have an existing PHP page (from an earlier project) which could be described
If there have been commits and many changes since an earlier commit, is there
I have a doubt about orkut's new URL Writing method. Earlier the home page
Well as I have posted earlier too...I have created a site in two languages.One
I have used unions earlier comfortably; today I was alarmed when I read this
I have looked all around and only found solutions for python 2.6 and earlier,
From an earlier post about trying to improve my sites performance I have been
i have a container box that includes a number of thumbnails. i earlier made
I have a problem. Actually in our application, earlier the customer was allowed to
I have a form, MainForm, which was working just fine and dandy until earlier

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.