Hi all. Here is my existing .htaccess code:
Code:
RewriteEngine On
RewriteCond %{REQUEST_URI} !.*\.(png|jpg|swf|css)$ [NC]
RewriteCond %{REQUEST_URI} !ajax.*\.php$ [NC]
RewriteCond %{REQUEST_URI} !index.php
RewriteRule ^(.+)$ index.php?url=$1
Essentially all URLs are sent to index.php and I take it from there as I'm more proficient with PHP than all this rewriting malarky! Anyway, this only works with
www.domain.com. How can I take EVERY URL and send it to index.php?
i.e. m.domain.com, tablet.domain.com, img.domain.com and so on?