Say I have a URL like this:
Code:
www.foo.website.com/some-page
Is it possible to rewrite the URL to this?
Code:
www.website.com/some-page?var=foo
I'm asking about a rewrite and not a redirect, so I'm wanting the first URL to stay in the address bar, but for the server to "get" the second URL. Also, as you can probably deduce, this needs to work for any subdomain, not just "foo."
I should add that this .htaccess file is also being used by WordPress and has the following code:
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /~kbj/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /~kbj/index.php [L]
</IfModule>
Is what I'm asking possible to do?
|