theblade24
May 4th 2006, 6:37 am
I have asked this question before......and the answer for a universal mod rewrite I guess created an endless loop or whatever and it wouldn't work, unless the rule was just wrong.
But I have about 7000 products, hence 7000 urls that I was rewriting a certain way and then changed the method of rewrite to include the item name in the url and shorten the url so it didn't appear that the page was deep in several directories. So I began rewiting them a different way. It now looks like they are top level pages. The jest of this is I'm trying to 301 redirect all of them to their new style.
domain/cp-app/prod/sports-memorabilia/ItemID is now set to display as
domain/sports-memorabilia-Item-Name--ItemId.html
I made a 301 rewrite rule for each and every one to redirect them, and I think it worked, but that meant putting 7000 or so lines in my htaccess file and it ballooned to 1.5 meg in size and slowed my dynamic site to a crawl. I quickly abandoned that method.
Does anyone know of a rewrite or redirect method that would work? I read briefly on webmasterworld something about a script or external from the htaccess file to accomplish this but didn't understand it at all.
The bottom line is I am trying to redirect 301 a url that has been written one way to rewriting it another way. If anyone has methods or suggestions I would really really appreciate their help. If it involves a coding or script or something I am willing to pay someone for their time.
I know I am not the first person who has ever changed the method of rewrite they are using for alot of urls. There must be a method that can solve this issue. I hope someone out there has the knowledge and experience to put me on the right track.
Thanks in advance for your time and help!!
But I have about 7000 products, hence 7000 urls that I was rewriting a certain way and then changed the method of rewrite to include the item name in the url and shorten the url so it didn't appear that the page was deep in several directories. So I began rewiting them a different way. It now looks like they are top level pages. The jest of this is I'm trying to 301 redirect all of them to their new style.
domain/cp-app/prod/sports-memorabilia/ItemID is now set to display as
domain/sports-memorabilia-Item-Name--ItemId.html
I made a 301 rewrite rule for each and every one to redirect them, and I think it worked, but that meant putting 7000 or so lines in my htaccess file and it ballooned to 1.5 meg in size and slowed my dynamic site to a crawl. I quickly abandoned that method.
Does anyone know of a rewrite or redirect method that would work? I read briefly on webmasterworld something about a script or external from the htaccess file to accomplish this but didn't understand it at all.
The bottom line is I am trying to redirect 301 a url that has been written one way to rewriting it another way. If anyone has methods or suggestions I would really really appreciate their help. If it involves a coding or script or something I am willing to pay someone for their time.
I know I am not the first person who has ever changed the method of rewrite they are using for alot of urls. There must be a method that can solve this issue. I hope someone out there has the knowledge and experience to put me on the right track.
Thanks in advance for your time and help!!