pootsey Posted October 24, 2006 Share Posted October 24, 2006 hello,I have the following code for mod_rewrite [code]RewriteEngine onRewriteRule ^([0-9]+)$ index.php?id=$1 [L][/code]and I was wondering if its possible to make it into subdomains?IE - 6372.mysite.com rather then the mod_rewrite version mysite.com/6372thanks alot :)- pootsey Link to comment https://forums.phpfreaks.com/topic/24955-mod_rewrite/ Share on other sites More sharing options...
wildteen88 Posted October 25, 2006 Share Posted October 25, 2006 Not possible I'm afraid AFAIK to make subdirectories with mod_rewrite. As first you need to set-up the subdirectory. Then you can use mod_rewrite to redirect the user top the subdirectory. Link to comment https://forums.phpfreaks.com/topic/24955-mod_rewrite/#findComment-114341 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.