1

htaccess redirects adds question mark to url

view story
linux-howto

http://serverfault.com – I have the following in my htaccess: #When your application folder isn't in the system folder RewriteCond %{REQUEST_URI} ^application.* RewriteRule ^(.*)$ /?/$1 [L] #Checks to see if the user is attempting to access a valid file, RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ ?/$1 [L] #No WWW RewriteCond %{HTTP_HOST} !^myrealdomain.com$ [NC] RewriteRule ^(.*)$ https://myrealdomain.com/$1 [L,R=301] #Always redirect to SSL pages RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} I want the www to be redirected and I want (HowTos)