![]() ![]() |
Moderator Alumni![]() Group: Hall Of Fame
Joined: 31-August 02
Posts: 15,634
|
Mar 12 2007, 01:02 AM |
|
|
I'm not completely sure about what you are asking from the way that you've described it.
Can you provide an example, using example.com to stand for your URL? Right now it sounds like you have something like this: http://www.example.com/dir http://www.example.com/dir/ The first one should be redirecting to the second one, but it sounds like it isn't You could do that with something like what is described on this page: Apache 1.3 URL Rewriting Guide (see the appropriate page for your version of Apache if that isn't it) There's a section on that page that deals with the "Trailing Slash Problem" Though, when you say that you could do something with robots.txt to block one of these, I'm not sure if what I am writing about is what you mean. |
||
| Offline | ![]() |
Hall of Famer![]() ![]() Group: Hall Of Fame
Joined: 3-November 05
Posts: 3,461
From: CHeeseland
|
Mar 12 2007, 02:24 AM |
|
|
Hi A.N.Onym
I don't know if you have seen this, but it has a lot of neat ideas on how to clean up URLs with mod_rewrite: http://www.webmasterworld.com/apache/3208525.htm (now with even less cloaking John |
||
| Offline | ![]() |
Moderator![]() ![]() Group: Moderators
Joined: 15-January 04
Posts: 4,736
From: Rimouski, Canada
|
Mar 12 2007, 08:55 AM |
|
|
From your mention of WP I understand you need this applied to WordPress?
Make life simple and get the permalink redirect. It solves your problem WordPress-wide: there is one URL per document and one URL only. If not, it redirects it (301). The backslash/no backslash URLs were what it was initially developed for. Works good. |
||
| Offline | ![]() |
|
|
| Lo-Fi Version | Time is now: 9th February 2010 - 07:02 PM |
| Meet our Moderators: | cre8pc : projectphp : sanity : Black Phoenix : bwelford : EGOL : Ruud : rustybrick : AbleReach : swainzy : joedolson: eKstreme: dazzlindonna : SEOigloo: iamlost : RisaBB |