spaces in destination url
3 posts
• Page 1 of 1
- clarkmitchell
- Posts: 3
- Joined: 04 Jun 2012, 11:50
spaces in destination url
We recently updated our website and most of our old URLs changed. I am redirecting the old URLs to the corresponding new pages, but I am having trouble getting the redirect to work when the new page has a space in the URL. Here is a specific example...
This does not work -
RewriteRule ^HospitalsFacilities/Hospitals/Ss/AboutUs/Pages/Volunteering.aspx http://www.domain.com/locations/hospita ... ering.aspx [NC,R=301,L]
This does
RewriteRule ^HospitalsFacilities/Hospitals/Ss/AboutUs/Pages/Volunteering.aspx http://www.domain.com [NC,R=301,L]
I've tried the following variations of the destination URL and none seem to work...
http://www.domain.com/locations/hospitals/ss/about\%20us/Pages/volunteering.aspx
http://www.domain.com/locations/hospitals/ss/about\sus/Pages/volunteering.aspx
http://www.domain.com/locations/hospitals/ss/about us/Pages/volunteering.aspx
Any help would be greatly appreciated.
This does not work -
RewriteRule ^HospitalsFacilities/Hospitals/Ss/AboutUs/Pages/Volunteering.aspx http://www.domain.com/locations/hospita ... ering.aspx [NC,R=301,L]
This does
RewriteRule ^HospitalsFacilities/Hospitals/Ss/AboutUs/Pages/Volunteering.aspx http://www.domain.com [NC,R=301,L]
I've tried the following variations of the destination URL and none seem to work...
http://www.domain.com/locations/hospitals/ss/about\%20us/Pages/volunteering.aspx
http://www.domain.com/locations/hospitals/ss/about\sus/Pages/volunteering.aspx
http://www.domain.com/locations/hospitals/ss/about us/Pages/volunteering.aspx
Any help would be greatly appreciated.
Re: spaces in destination url
Hello,
Please try to encode the spaces as follows:
RewriteRule ^HospitalsFacilities/Hospitals/Ss/AboutUs/Pages/Volunteering.aspx http://www.domain.com/locations/hospitals/ss/about\ us/Pages/volunteering.aspx [NC,R=301,L]
Please try to encode the spaces as follows:
RewriteRule ^HospitalsFacilities/Hospitals/Ss/AboutUs/Pages/Volunteering.aspx http://www.domain.com/locations/hospitals/ss/about\ us/Pages/volunteering.aspx [NC,R=301,L]
- clarkmitchell
- Posts: 3
- Joined: 04 Jun 2012, 11:50
Re: spaces in destination url
Thanks for your reply.
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 12 guests