I have the following code in my .htaccess
:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /annsenglishmediumschool
RewriteCond %{HTTP_HOST} shops.annsenglishmediumschool.com
RewriteRule .* http://annsenglishmediumschool.com/index.php/shops [L]
</IfModule>
This works fine , but how can i make "shops" as a variable here ? means whatever we type in the place of "shops
" should come after http://annsenglishmediumschool.com/index.php/
thanks in advance .
EDIT :
after edit my .htaccess
looks like this :
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /annsenglishmediumschool
RewriteCond %{HTTP_HOST} ^(.+?)\.annsenglishmediumschool\.com$
RewriteRule .* http://annsenglishmediumschool.com/index.php/%1 [L]
</IfModule>
The problem is that it now takes only 'www' to the right as annsenglishmediumschool.com/index.php/www ,and no other string ,any help is greatly thanked