Web Hosting Talk







View Full Version : Best way to rewite sub.domain to a url?


Peter-SexyWing
04-07-2010, 10:45 AM
Hi
What we want
when type http://sub.abc.com , it reads http://www.abc.com/123/kk.htm and browser's url bar stay at sub.abc.com

possible? if mod_rewrite is not possible, any other method to do it? we have root access of server

thanks;)

mattle
04-07-2010, 12:11 PM
Hi
What we want
when type http://sub.abc.com , it reads http://www.abc.com/123/kk.htm and browser's url bar stay at sub.abc.com

possible? if mod_rewrite is not possible, any other method to do it? we have root access of server

thanks;)
If you have root access, then anything is possible, including mod_rewrite! I would probably just use mod_alias for this though...http://httpd.apache.org/docs/1.3/mod/mod_alias.html#redirect