gosman

msg:4404964 | 5:06 pm on Jan 8, 2012 (gmt 0) |
Hi mudloop rewriterule ^connect/connect/(.*) connect/$1 [L,R=301]
|
g1smd

msg:4404970 | 5:41 pm on Jan 8, 2012 (gmt 0) |
The redirect target should also include the protocol and hostname. This redirect must be placed before any non-www/www redirect code. Both of these things avoid introducing an unwanted multiple step redirection chain.
|
gosman

msg:4404985 | 6:33 pm on Jan 8, 2012 (gmt 0) |
Hi mudloop rewriterule ^connect/connect/(.*) http://hostname/connect/$1 [L,R=301] Is what g1smd means. [edited by: engine at 9:56 am (utc) on Jan 10, 2012] [edit reason] fixed formatting [/edit]
|
mudloop

msg:4405448 | 3:10 am on Jan 10, 2012 (gmt 0) |
Thanks for the reply. It's not functioning as it should though, but I suspect rewrite has been disabled on the server. I've asked the administrator, waiting for his reply. Curious, what does the [L,R=301] part mean?
|
lucy24

msg:4405462 | 5:05 am on Jan 10, 2012 (gmt 0) |
It means you need to do some background reading [httpd.apache.org]. Really. What happens when you say RewriteEngine On RewriteRule ^connect/(connect/.*) http://www.example.com/$1 [L,R=301] ? "Not functioning as it should" implies that it is functioning in some other way. Which is always interesting. Notice how by capturing the second "connect" I have sneakily saved typing eight characters in the target. It is not necessary to do it this way.
|
|