Closed Thread
Results 1 to 4 of 4

Thread: 301 redirect on 40,000 pages to one page - Need some advice

  1. #1
    UFO Hunter Sitebee is a jewel in the roughSitebee is a jewel in the rough Sitebee's Avatar
    Join Date
    May 2005
    Location
    Bolton, U.K
    Posts
    1,224

    Linux 301 redirect on 40,000 pages to one page - Need some advice

    Hi guys,

    I need a little advice here regarding 301`s. Im working on a website (not mine) which has a large directory (not links directory, places directory) with around 40,000 pages. I need to redirect all those pages to another page on the same domain using a 301.

    Im not moving the whole directory just most of pages. There`s lots of duplicate content and with the new google penguin update its starting to affect the website rankings

    The list has been compiled, but when I drop the rules into the htaccess file, the whole site goes down on a 500 internal server error. All the redirect rules are correct and have been double checked.

    The htaccess file is around 6 -7 mb with the added 40,000 rules.

    Does anyone have any suggestions on how I can get all the redirects to successfully work? Just to make this clear its for the same domain, not jumping to another domain and there`s no daisy chains within the rules. I done some googling but cannot find a fix.

    I also have no access to the database or admin access to the script because it has client details, so I cannot drop the pages via the database and route them to a custom 404

    Also why is it causing a 500 error, could that be due to apache server load because of the htaccess size?

    Thanks
    Last edited by Sitebee; July 20th, 2012 at 09:32. Reason: added more info
    Check out the Free CSS Templates I`ve created | UK Softaculous Web Hosting only £5.00 per month.

  2. #2
    WP Like sander k is a splendid one to beholdsander k is a splendid one to beholdsander k is a splendid one to beholdsander k is a splendid one to beholdsander k is a splendid one to beholdsander k is a splendid one to beholdsander k is a splendid one to beholdsander k is a splendid one to beholdsander k is a splendid one to behold sander k's Avatar
    Join Date
    Jan 2008
    Location
    Netherlands
    Posts
    2,234
    Have you tried this:

    Code:
    <?
    Header( "HTTP/1.1 301 Moved Permanently" ); 
    Header( "Location: http://www.yourdomain.com" ); 
    ?>
    Opening soon WP Like!

  3. #3
    UFO Hunter Sitebee is a jewel in the roughSitebee is a jewel in the rough Sitebee's Avatar
    Join Date
    May 2005
    Location
    Bolton, U.K
    Posts
    1,224
    Thanks for your reply, I eventually got access to the database and removed all the pages sending them to a custom 404.
    Check out the Free CSS Templates I`ve created | UK Softaculous Web Hosting only £5.00 per month.

  4. #4
    WP Like sander k is a splendid one to beholdsander k is a splendid one to beholdsander k is a splendid one to beholdsander k is a splendid one to beholdsander k is a splendid one to beholdsander k is a splendid one to beholdsander k is a splendid one to beholdsander k is a splendid one to beholdsander k is a splendid one to behold sander k's Avatar
    Join Date
    Jan 2008
    Location
    Netherlands
    Posts
    2,234
    Thats proberbly easyer to do any way
    Opening soon WP Like!

Closed Thread

Similar Threads

  1. How to redirect a page without loosing PageRank?
    By Peo in forum Site Promotion / Search Engine Optimisation
    Replies: 7
    Last Post: November 24th, 2009, 15:51
  2. need advice for my new web page,it is in chinese
    By kingli86 in forum Review my webdesign
    Replies: 6
    Last Post: November 6th, 2004, 08:36
  3. How to auto-redirect to another page?
    By DrSobol in forum Webdesign / HTML
    Replies: 0
    Last Post: September 4th, 2002, 11:26
  4. How do i edit 1 page and all other pages are edited?
    By slimeredr in forum Programming Help
    Replies: 18
    Last Post: October 16th, 2001, 16:34
  5. Redirect to a new 'Thanks page'..
    By woody in forum Programming Help
    Replies: 5
    Last Post: March 22nd, 2001, 05:06

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts