Have you tried this:
Code:<? Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: http://www.yourdomain.com" ); ?>
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.
Have you tried this:
Code:<? Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: http://www.yourdomain.com" ); ?>
Opening soon WP Like!
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.
Thats proberbly easyer to do any way![]()
Opening soon WP Like!
Bookmarks