Okay. I'll try to explain a little better.
So, I'm making a community site. I have different sections of the site.
like news, articles, forum, etc. All these sections can be accesed via subdomains.
In my apache server i setup a wildcard subdomain so everything (*.mysite.com) will forward to
www.mysite.com and therefore the index.php is accessed. In the index.php file the script parses the $_SERVER['HTTP_HOST'] variable to find out which of the section to load.
for ex. if
http://news.mysite.com is accessed then the index.php file parses the http_host and extracts the news part. So it will know that to load the news section. It simply loads news.php.
Okay, my problem is that if somebody tries to access
http://news.mysite.com/category/politics than an error will occur because apache searches for politics or category. What i want is that with this url apache redirects it to news.php where i can parse the url more to give politics section in news.
All what i want from apache is to ignore everything after the / and only parses
http://news.mysite.com even if the url is
http://news.mysite.com/category/politics because the /category/politics i want to parse the news.php
If somebody writes for ex.:
http://news.mysite.com/category/science
than the following proccess to occur:
apache (with the wildcard subdomain) forwards to
www.mysite.com where the index.php is loaded in the index.php file the script would parse the http_host and extract the news therefore it will know which setion to load. It loads news.php and in this file extract the /category/science part and to load science news from a database...