New answers tagged

1

I expect www.filmstore.sandwiches.org to go to sandwiches.org, ... This does not work, but sends me to filmstore.net, which I think is the default behaviour for multiple cPanel domains. Ah, but the "problem" here is that the www.filmstore subdomain maps to the /filmstore subdirectory off the main domains document root (as stated in comments) - this ...


1

RewriteCond %{REQUEST_FILENAME} !^/PhP/?$ RewriteCond %{REQUEST_FILENAME} !^/forms/?$ RewriteCond %{REQUEST_URI} !^/PhP/?$ RewriteCond %{REQUEST_URI} !^/forms/?$ You don't need to check against both REQUEST_FILENAME and REQUEST_URI - you're just repeating the same check. It's easier to use REQUEST_URI (the URL-path) in this instance. The ...


1

It sounds like you may have put the directives in the wrong place in your .htaccess file. The HTTP to HTTPS redirect needs to go near the top, before any other rewrites. The nature of your URLs suggest you are using a front-controller type pattern and rewriting requests to a common script. However, the "homepage" does not need to be rewritten (since mod_dir ...


Top 50 recent answers are included