Forum Moderators: open

Message Too Old, No Replies

Newbie ISAPI rewrite question

d/b pages already indexed ...

         

millie

12:29 pm on Feb 5, 2004 (gmt 0)

10+ Year Member



We have rewritten some .asp pages that are already indexed by some SEs.

We need people to be able to access the rewritten pages and the dynamic .asp pages, which are the same.

I'm not sure I quite understand the principal of this software and their help files are so beyond me I feel like I'm drowning!

Do we need to actively do anything to stop the SEs finding duplicate content? Like putting the dynamic pages in the robots.txt file or set up 301s?

Sorry, I just don't get it!
Millie

wardbekker

10:29 pm on Feb 6, 2004 (gmt 0)

10+ Year Member



Hi Millie

I'm not sure of it affects your Google ranking when having dupes on different urls in the same site. Anyway, it's better to have just one standard url syntax throughout your whole site, and that should be the rewritten url. (for ex. www.example.org/article12/cheesballs.htm)

f00sion

10:36 pm on Feb 6, 2004 (gmt 0)

10+ Year Member



the best way to do it would be to add a rule for each dynamic page you have and make it redirect to the newly created paths. for example, the previous page:
yourdomain.com/dynamic.asp?product=123&param2=xx
so something like this:
RewriteRule /dynamic.asp?product=(.*)&param2=(.*) /$1/$2/ [I,O,RP]
RewriteRule /123/xx/ /dynamic\.asp?product=$1&param2=$2 [I,O]

The added RP flag sends back a permanent redirect status so the spiders will update their links to go to the proper path... better than exluding it from robots.txt because then they might just drop it from the index.

f00sion

10:38 pm on Feb 6, 2004 (gmt 0)

10+ Year Member



oops, in those rewrite rules all question marks should be escaped: \?