Tag Info

Hot answers tagged

2

Triying the same and on my search I found that symfony2 frameworks .htaccess file is doing that at least it is stated in the file that it would. I tried to use it in my own setup but didnt work. Maybe that will help you guys somehow. # Determine the RewriteBase automatically and set it as environment variable. # If you are using Apache aliases to do mass ...


2

For Q1, the - doesn't mean that processing or iteration would be stopped, simply that the URL path would be passed through without any filtering or processing. The file will continue to execute rules until it reaches the end of the file or a rule is met that has the [L] last rule flag appended to it. To clarify then, RewriteRule .* - ...


1

As w3d suggested in the comments, you have an open parenthesis, but not one to close it RewriteEngine On RewriteCond %{HTTP_HOST} ^(www\?sek-muenchenstein\.ch$ [NC] # right here -------------^ RewriteRule ^(.*)$ http://muenchenstein.sek-am.ch/ [R=301,L] Also, in the COND line, you have www\?. I think this might be wrong too, it's now literally looking for ...


1

Not sure if this would encompass your goal completely, but this would turn http www mode into https non-www mode: RewriteEngine On RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC] RewriteRule ^(.*)$ https://example.com/$1 [R=301,L] Then to redirect the whmcs to a new url, you can probably use a simple 301: Redirect 301 ...



Only top voted, non community-wiki answers of a minimum length are eligible