301 redirect for a page with a space in it
Posted
by
Outerbridge Mike
on Pro Webmasters
See other posts from Pro Webmasters
or by Outerbridge Mike
Published on 2012-11-22T15:04:49Z
Indexed on
2012/11/22
17:11 UTC
Read the original article
Hit count: 477
htaccess
|301-redirect
I have some pages from a client's old template-based site which have spaces in them. For example, one of the pages looks like this:
example.com/page.php?domain_name=example.com&viewpage=Gallery %26 News
I'm thinking that the correct way to do an htaccess 301 redirect is to include something like this:
Redirect 301 /page.php?domain_name=example.com&viewpage=Gallery%20%26%20News http://www.example.com/gallery/
where the new page is:
example.com/gallery
Is this correct?
© Pro Webmasters or respective owner