Search engine optimization forum
Search engine optimization forum
Making websites work.
You are not logged in.
#1 2006-10-23 14:31:10
- jon spavin
- SEO n00b
- Registered: 2006-10-23
- Posts: 2
301 re-direct
Hi - any help greatly appreciated...
I am in the process of using 301 re-directs (in .htaccess files) for a number of pages. All is fine until I use a directory or file with a space in it i.e. /dog clothes/ any suggestions?
Offline
#2 2006-10-23 14:43:19
Re: 301 re-direct
Basically, in .htaccess you have to escape non alphanumeric characters. Try adding a backslash before the space.
i.e. /dog\ clothes/
If that fails then it's a case of hitting the Apache website or Googling for the result. I recently had trouble with having to escape characters in .htaccess and it was nothing but trouble.
Edward Clarke - eCommerce Consultant
Work: ebizcentre.co.uk
Blog: blog.tn38.net
F1 Gallery: formula1photos.tn38.net
Offline
#3 2006-10-23 14:52:35
- jon spavin
- SEO n00b
- Registered: 2006-10-23
- Posts: 2
Re: 301 re-direct
Sadly, it did not work. Many thanks...
Offline
#4 2006-10-23 14:55:53
Re: 301 re-direct
What about /dog%20clothes/ as that is another option. Not sure if pre-escaped URL's get sent in the header or not.
Edward Clarke - eCommerce Consultant
Work: ebizcentre.co.uk
Blog: blog.tn38.net
F1 Gallery: formula1photos.tn38.net
Offline
#5 2006-10-23 15:22:38
Re: 301 re-direct
Just read somewhere else that \s is an escaped space.
/dog\sclothing/
Let us know how it goes as there is still the asterisk * option.
EDIT:
There is more information about this. It seems it's an Apache bug and requires an amendment in the Apache config file, something you may not have access to.
There's an explanation at CherryPy.
Last edited by Ed (2006-10-23 16:53:23)
Edward Clarke - eCommerce Consultant
Work: ebizcentre.co.uk
Blog: blog.tn38.net
F1 Gallery: formula1photos.tn38.net
Offline
#6 2007-05-28 10:13:27
- Gracia
- SEO Guide
- Registered: 2007-05-28
- Posts: 10
Re: 301 re-direct
have one additional question that just occurred to me: If I have established some incoming links at various sites using the non-www. version, will this have a negative impact on our sites in the SE's if we do the 301 redirect now? In other words, if I set up the permanent 301 redirect to the www. versions, will we still get the PR help from those sites linking to us with a non-www. link?
Offline
#7 2007-09-29 04:19:29
Re: 301 re-direct
Yes, you will get the benefit from links to the non-www versions also if you do a 301 redirect.
For the www and non-www issue, you should Register with Google webmaster Tools also and use the inbuilt option to select www as your preferred option.
You could also take a long shot and and send a polite letter to the linking webmasters to change their link.
to change
Offline