Reply
rewritten url index twice problem
Old 10-05-2008, 01:16 AM rewritten url index twice problem
Galaxian's Avatar
Dingleberry!

Posts: 625
Name: Rich
Location: United Kingdom
I posted a while back and got no solution.

Now I am using webmaster tools on google and shows the duplicate content and it's all the rewritten urls that are rewritten as directories.

It indexes /directory/ and /directory, but I only want /directory/ .. Is there anyway to fix this? Maybe a redirect for EACH of the rewrites? How'd I go about that?

Help
__________________
Galaxian is offline
Reply With Quote
View Public Profile Visit Galaxian's homepage!
 
When You Register, These Ads Go Away!
Old 10-06-2008, 07:52 AM Re: rewritten url index twice problem
Average Talker

Posts: 19
Name: Raj S
The post you have done is not giving a clear picture of the issue. Could you please re-direct us by giving an example?
__________________
LightningFast.com - Extreme ethical Clothing that transforms
lightningfast is offline
Reply With Quote
View Public Profile Visit lightningfast's homepage!
 
Old 10-06-2008, 08:30 AM Re: rewritten url index twice problem
Galaxian's Avatar
Dingleberry!

Posts: 625
Name: Rich
Location: United Kingdom
Sorry I'm not clear.

http://www.url.com/directory
and
http://www.url.com/directory/

they are both indexed but are rewritten urls themselves, so how do I make sure the user/search engine is always pointed to the one with the ending / ?
__________________
Galaxian is offline
Reply With Quote
View Public Profile Visit Galaxian's homepage!
 
Old 10-06-2008, 10:43 AM Re: rewritten url index twice problem
juliensimon's Avatar
hin hin hin hiiiiinn

Latest Blog Post:
Newsletter: pros / cons
Posts: 1,057
Name: Julien
Location: Vancouver, BC
simply do a 301 redirect from the directory to the directory/
juliensimon is offline
Reply With Quote
View Public Profile Visit juliensimon's homepage!
 
Old 10-06-2008, 11:30 AM Re: rewritten url index twice problem
Galaxian's Avatar
Dingleberry!

Posts: 625
Name: Rich
Location: United Kingdom
How do I do that with rewritten urls?

e.g

RewriteRule ^([a-z0-9]+)-([a-z0-9-_]+)/?$ /page.php?id=$1&cat=$2
__________________
Galaxian is offline
Reply With Quote
View Public Profile Visit Galaxian's homepage!
 
Old 10-06-2008, 12:06 PM Re: rewritten url index twice problem
juliensimon's Avatar
hin hin hin hiiiiinn

Latest Blog Post:
Newsletter: pros / cons
Posts: 1,057
Name: Julien
Location: Vancouver, BC
RewriteRule ^product.php?id=([0-9]+)(/)?$ product/$1 [R=301]

http://www.301-redirect.net/en/301-r...ite-rules.html

I hope this helps.
juliensimon is offline
Reply With Quote
View Public Profile Visit juliensimon's homepage!
 
Old 10-06-2008, 12:58 PM Re: rewritten url index twice problem
Galaxian's Avatar
Dingleberry!

Posts: 625
Name: Rich
Location: United Kingdom
RewriteRule ^([a-z0-9]+)-([a-z0-9-_]+)/?$ /games.php?id=$1&game=$2
RewriteRule ^games.php?id=([a-z0-9]+)&game=([a-z0-9-_]+)(/)?$ $1-$2 [R=301]

doesn't work, forgive my inexperience with this.
__________________
Galaxian is offline
Reply With Quote
View Public Profile Visit Galaxian's homepage!
 
Reply     « Reply to rewritten url index twice problem
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.13107 seconds with 12 queries