Posted 02 August 2006 - 04:28 AM
Instead of having http://www.domain.com/user.html
I'd like to have...
or just generally take off the extension.
Is that possible??
Posted 21 September 2006 - 06:43 AM
I want to know that how can it possible to make a dynamic subdomain using .htaccess file and mod_rewrite ?
My idea is,
I want to redirect http://subdomain.mydomain.com to http://mydomain.com/...hp?id=subdomain
How can this possible in apache's mod rewrite ?
Posted 21 September 2006 - 10:06 AM
# Turn on the rewrite engine RewriteEngine On # the rewriter tule to use: RewriteRule ^user$ /user.htmlYou add the above the the htaccess file thatg is in the same folder as user.html. When you goto mysite.com/user it'll load up user.html.
@vivek - Please do not hijack other peoples threads. Please create your own thread. However I'll answer you question - I'm quite new to mod rewrite but I dont think it is possible to do that. Mod rewrite can only rewrite whats after you websites address. Prehaps you might want to look into virtual hosts if you want to create a subdomain.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users