.htaccess file
- Started
- Last post
- 3 Responses
- section_014
I'm going to be moving a site over to a new design soon and want to get all my 301 redirects in order. Before, I used the redirect 301, but this time I'm going to use rewriterule.
Anyways, I can't figure out if I should be escaping dots or not. I've found examples of both. Here's an example of what I'm doing, but I don't know which to use.
RewriteRule ^old-url\.htm$ http://www.domain.com/new-url.ht… [NC,R=301,L]
or (without the "." escaped)
RewriteRule ^old-url.htm$ http://www.domain.com/new-url.ht… [NC,R=301,L]
pleaz help!
- version30
don't make it confusing, just one line
redirect 301 http://www.old.com/old.htmhttp://www.new.com/new.htm
- section_0140
That's what I used before, but I've been reading about issues when "redirect" and "rewriterule" are used together. Since, I have a rewriterule expression that I can't get rid of, I'm sort of forced in to using it. Thanks.
- section_0140
After some more research, I think I'm going to escape it. Apparently, it can act as a wildcard if not
I hate regular expressions