• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

How many 301 redirects can be added to .htaccess?

TheBigK

Well-known member
#1
Several months ago, @Jake Bunce had helped us import all our WordPress content to XenForo. Since there was no way to add auto-redirects to the new location of the content; we decided to let go of hundreds of back-links.

After reviewing our Google Webmasters account, it looks like we 'should' at least have a few (~ 150-200) high-quality backlinks. The only way to do this, it seems is to hard-code them in the .htaccess file.

My question is: How many of 301 redirects can we safely add to .htaccess file? What's the correct format of adding these links?
 

TheBigK

Well-known member
#3
There isn't a hard limit to my knowledge.

If you provide some example URLs and I can provide .htaccess code.
Thanks, Jake.

Here's a sample link:-

Code:
http://www.crazyengineers.com/ear-powered-medical-devices-are-getting-ready-5512/
Should Redirect To -

Code:
http://www.crazyengineers.com/threads/ear-powered-medical-devices-are-getting-ready.66735/
Do you think adding 150-200 links won't affect anything (performance, speed, et.al)?
 

Renegade

Well-known member
#4
You should do this using a rewrite map. I have set it up for over 8k redirects so far and plan to add another 20K in a month. So 200 links is nothing compared to that.

Unfortunately I am not very good with redirects so it took me a lot of trial and error to get it setup right. I can only point in the right direction.
 

TheBigK

Well-known member
#5
You should do this using a rewrite map. I have set it up for over 8k redirects so far and plan to add another 20K in a month. So 200 links is nothing compared to that.
Could you tell me how to setup a rewrite map? How are you adding redirects? Manually or automatically?
 

TheBigK

Well-known member
#7
Refer this thread -> http://xenforo.com/community/threads/need-help-with-setting-up-the-rewrite-map.67408/

I have a text file setup in the home directory which contains the Key and Output on the same line separated by space. Key is the backlink URL and output is the redirected URL.

Then you put in a line in your htaccess file to match the key in the rewrite map and return the new URL if there is a match.
Thanks. Did it work? Any effect of the map on the site's performance?