Just a quick question I am trying to mask my url but when i type in the url it still shows the full code eg i still see http://X.mydomain.com/index.php?ID=44&cat=44 where i want to see http://X.mydomain.com here is the code RewriteEngine on RewriteCond %{HTTP_HOST} ^X.mydomain.com$ [OR] RewriteCond %{HTTP_HOST} ^X.mydomain.com$ RewriteRule ^(.*)$ http://www.X.mydomain.com/index.php?ID=44&cat=44 [R=301,L]
I suppose you remove [R=301,L] and leave [L] only. Wordpress does it like that: RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] You can get request string by using $_SERVER['REQUEST_URI']
Hi all just getting back to this i am still seeing the full redirected url in the url bar the coding looks like this RewriteEngine on RewriteBase /public_html/keyword RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{HTTP_HOST} ^keyword.www.mydomain.com$ [OR] RewriteCond %{HTTP_HOST} ^www.keyword.mydomain.com$ RewriteRule ^(.*)$ http://www.mydomain.com/wordpress-mu-1.5.1 [L] the goal is that i wish to have wordpress mu with a subdomain eg keyword.mydomain.com but its displaying wordpress-mu-1.5.1 when i redirect the url also is does not append the string after it
1) You need to redirect the mask url, The non-masked url will not automatically convert to the masked one. 2) You must be needing to pass values of iD and cat , You are not doing that