.htaccess Multiple Variables
Posted: Thu Oct 24, 2013 11:40 am
Hello everyone.
I am pulling my hair out trying to get my .htaccess file to allow a domain such as mydomain.com/something/someone
Here is my code so far:
I have tried all sorts, but still cant get this thing working! The code I have posted removes the use of www. before my site, and allows one variable such as mydomain.com/index.php?page=XXX, I just cant get another one working, I would like mydomain.com/index.php?page=hello§ion=goodbye.
Any help is much appreciated.
Tom.
I am pulling my hair out trying to get my .htaccess file to allow a domain such as mydomain.com/something/someone
Here is my code so far:
Code: Select all
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteCond %{HTTPS}s ^on(s)|
RewriteRule ^ http%2://%1%{REQUEST_URI} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?page=$1 [QSA,L]Any help is much appreciated.
Tom.