etzeppy Posted March 17, 2007 Posted March 17, 2007 With my move to OSC I would like to redirect my old html product pages to the new OSC product path. I know a 301 redirect in the .htaccess file works good for this but I'm concerned about adding 100 more lines to that file. It is my understanding that the .htaccess file is processed on each page request and will slow my site down if it gets very big. Should I be concerned about the number of lines in .htaccess? All of my old html pages are in subdirectory "/product/". I had hoped I could put another .htaccess file in that directory where it would only be processed when those pages are requested. However, .htaccess in sub of root doesn't seem to work. Maybe I'm doing something wrong but I've found various postings indicating that I can't do this. What other search engine friendly redirect options do I have for a large number of pages? I could post a new version of each old html page with redirect headers but I don't think you can do a search enginer friendly 301 redirect in a page header.
etzeppy Posted March 17, 2007 Author Posted March 17, 2007 With my move to OSC I would like to redirect my old html product pages to the new OSC product path. I know a 301 redirect in the .htaccess file works good for this but I'm concerned about adding 100 more lines to that file. It is my understanding that the .htaccess file is processed on each page request and will slow my site down if it gets very big. Should I be concerned about the number of lines in .htaccess? All of my old html pages are in subdirectory "/product/". I had hoped I could put another .htaccess file in that directory where it would only be processed when those pages are requested. However, .htaccess in sub of root doesn't seem to work. Maybe I'm doing something wrong but I've found various postings indicating that I can't do this. What other search engine friendly redirect options do I have for a large number of pages? I could post a new version of each old html page with redirect headers but I don't think you can do a search enginer friendly 301 redirect in a page header. Please disregard this post. I found good solution. I installed a php parser command in the .htaccess file that allows me place php code in html pages. I then built a replacement html file for each page I wanted to redirect and inserted the php 301 redirect information. Seems to be working good and keeps me from having a bloated .htaccess file.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.