Forum Moderators: phranque

Message Too Old, No Replies

space in referrers link

         

Dexie

7:42 am on Sep 12, 2005 (gmt 0)

10+ Year Member



Another website links to me, which is ok, but there's a problem in the link and the webmaster is uncontactable.

On their link, they have:

href="http://www.example.com/oldpage%20"

In my .htaccess, I have :

RewriteRule ^oldpage\%20 http://www.example.com/newpage/ [R=301,L]

Jim did kindly try to help me before on this, but I seem to be going wrong somewhere, as it still doesn't work.

Any help much appreciated.

Dexie.

jd01

9:15 am on Sep 12, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Maybe in this case, it would be better to use the implicit 'and everything else' like this:

RewriteRule ^oldpage http://www.example.com/newpage/ [R=301,L]

You might also try:
RewriteRule ^oldpage. http://www.example.com/newpage/ [R=301,L]

Justin

Dexie

10:24 am on Sep 12, 2005 (gmt 0)

10+ Year Member



Hi Justin,

Many thanks for the input, unfortunately they didn't work either ;-(

If it's any help, when I've tried other codes, it usually gives me an error page, but when I tried those codes you kindly suggested, it didn't even load any page, it just looked if it was going to?

Any help appreciated.

Dexie.

jdMorgan

1:20 am on Sep 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Can you post the real local URL-paths of oldpage and newpage without revealing your site? We usually try to keep things anonymous here to protect our members, but in this case it may be interefering with our efforts.

If they are very similar, and using "oldpage" and "newpage" here is hiding important details of the URL-path structure, then this code may be putting your server in a loop or something.

Jim

Dexie

12:32 pm on Sep 13, 2005 (gmt 0)

10+ Year Member



Hi Jim, I don't want to contravene any rules here as I find this an excellent place ;-) and I would prefer the site to not be mentioned for the moment. Sticky mail is in your inbox.

Dexie.

jdMorgan

3:35 am on Sep 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The solution was:

RewriteRule ^oldpage\ $ http://www.example.com/newpage/ [R=301,L]