Setting a redirect with spaces
3 posts
• Page 1 of 1
Setting a redirect with spaces
Hello,
I am trying to redirect users from an old site to a new site. However, the URL has spaces. In ISAPI Rewrite, I get a syntax error. I tried putting %20 inbetween the spaces but the redirects will now work. This is the rule that I am trying to configure:
RewriteRule ^/sites/This is the old site with spaces http://www.newsite.com
I am trying to redirect users from an old site to a new site. However, the URL has spaces. In ISAPI Rewrite, I get a syntax error. I tried putting %20 inbetween the spaces but the redirects will now work. This is the rule that I am trying to configure:
RewriteRule ^/sites/This is the old site with spaces http://www.newsite.com
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Setting a redirect with spaces
There're several ways to do that, most of them have hints here.
You may use "\s" inside the pattern or use %20 and combine it with NE or NU flag.
regards
Andrew
You may use "\s" inside the pattern or use %20 and combine it with NE or NU flag.
regards
Andrew
Re: Setting a redirect with spaces
I found a lot of information from this hints you provided. Thanks.
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 4 guests