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 all pages to be https. It seems to work, but when I try to go to https://www.d.com/hello it redirects to https://d.com/?/hello.
Where did that extra question mark come from?
In addition, creating a facebook like button seems to not like my domain at all. The button appears blank and I think its do with the above...?
Any help much appreciated.
/helloan existing file or folder?