I am having a problem with mod_rewrite on subdomains..
I have a folder named 'articles' and have a .htaccess inside this foler that rewrites as:
Code:
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^/?/(.*)/([0-9]+)$ ../example.php?id=$3 [L]
</IfModule>
now when i access example.com/articles/a-title/12 it works fine...
I created a subdomain articles.example.com & when I access articles.example.com/articles/a-title/12 the server returns a 400 bad request error...
All my other rules work too without subdomain but with subdomain none works even simply opening articles.example.com returns a 400 error.. can someone please provide some assistance.
|