undeterminederror
BANNED
- Mar 31, 2008
- 630
- 462
I use mod rewrite like this:
its a wordpress blog and i have enabled the wildcards.
so it redirect ANYTHING.MY-SITE.com to MY-SITE.com/index.php?category_name=ANYTHING , ANYTHING being a category.
I need the browser to show the subdomain, not to redirect to the long url. Something like cloaking. Anyone has a clue about this?
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.MY_SITE.com
RewriteCond %{HTTP_HOST} ([^.]+).MY-SITE.com
RewriteRule ^(.*)$ http://MY-SITE.com/index.php?category_name=%1
so it redirect ANYTHING.MY-SITE.com to MY-SITE.com/index.php?category_name=ANYTHING , ANYTHING being a category.
I need the browser to show the subdomain, not to redirect to the long url. Something like cloaking. Anyone has a clue about this?