phorcon3 Posted May 30, 2008 Share Posted May 30, 2008 so, i got it that the url would link to: www.domain.com/username RewriteRule ^([a-z0-9_A-Z]+)/$ p.php?user=$1 [L] php: <?php echo $_GET['user']; ?> but i want it to be: username.domain.com how can i do this? Link to comment https://forums.phpfreaks.com/topic/108036-php-htaccess/ Share on other sites More sharing options...
runnerjp Posted May 31, 2008 Share Posted May 31, 2008 just swap it around Link to comment https://forums.phpfreaks.com/topic/108036-php-htaccess/#findComment-554494 Share on other sites More sharing options...
marcus Posted May 31, 2008 Share Posted May 31, 2008 http://www.webmasterworld.com/forum92/5439.htm that topic has shows a good demonstration Link to comment https://forums.phpfreaks.com/topic/108036-php-htaccess/#findComment-554505 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.