You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
Add something like this in the .htaccess file
below this section:
#ATS SEO Rules
Options +FollowSymLinks
RewriteEngine On
ADD THIS PART or Similar:
RewriteRule ^ccp51/cgi-bin/cp-app.cgi?&pg=cat&ref=sb_acc_belts http:// www. example. com/cat--Sexy-Belts--belts.html [R=301,L]
Offline
Tried that before. Even tried back-slashing before the special characters.
Thanks..
I'll try it again if I don't get any responses from folks that actually have something like this working in their site.
Good info. on this page:
But it's mostly greek to me. I note though that the ATS rewrite rules don't seem to include something like the second part of that code that tells the search engines to forget the old dynamic URLs.
Offline
There is probably a cleaner solution for this, but this works. Simply redirect the defunct url's to a nonexistent page in your .htaccess and it will produce a 404, for example:
Redirect /your-old-seo-url.html http://www.yourdomain.com/page-that-doesnt-exist.html
Eventually the pages will disappear from search engine indexes. The drawback is that you have to account for page.
Offline
I couldn't get anything to work in a straight up redirect 301 on these urls. I believe that the redirect 301 is "path" or just doesn't work for the old dynamic URLs.
Redirect 301 /ccp51/blah blah http:// wwwblah blah doesn't work or I'd just redirect to the new category and the 301 would tell the bot to forget it (but SEs have a thousand year memory anyway, it seems).
What I did for now on some of them was recreated the old category and put a meta refresh in the description field that redirects to the new category page with the new SEO URL. Yes, I know it's supposed to go in the head section -- but you can't do that because it's not a static page. So for those that need a quick fix of that sort, a meta refresh in the description field works and redirects just like it was in the head of a static page.
But I need the proper long term redirect that will cause all those old ugly renamed category URLs to fall out of the SEs.
Thanks..
Offline
The rewrite I listed also works on my site... are you typing the old URLS directly into the browser, or are you using the rewrite, then clicking on the old link in a search engine. Adding the above code, then clicking on a link in the search engine, should bring up the new page.
Offline
I've pasted the URL into the browser and also tried it from a SE link. Same thing.. blank category page with the old URL in the address bar.
Except for the 'example.com', this is what I just tried (again). I included the other parts so you can see where I have it placed. Rest of the rules run below it.
#ATS SEO Rules
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^ccp51/cgi-bin/cp-app.cgi?&pg=cat&ref=swimwear [R=301,L]
Rest of ATS rules
Offline
Ed_H,08/16/2006 10:29:08 PM wrote:
Well, the above redirect (no 301) worked for me to 404 defunct seo url pages when placed after the seo mod rewrite rules.
I haven't tried that with two new SEO type URLs (don't need a redirect of a new SEO URL yet), but it doesn't work for me with the old /ccp51/cgi-bin/blah blah URLs.
I have plenty of old static 301 redirects going to other statics and also to new SEO URLs in .htaccess that work fine that way, but not the old dynamic URLs.
Offline