chantown Posted November 11, 2007 Share Posted November 11, 2007 For example, I have this URL and passing this Variable www.domain.com/index.php?username=hellokitty How do people make it so that you can do: www.domain.com/hellokitty and it does that? Thanks! Link to comment https://forums.phpfreaks.com/topic/76909-how-do-people-do-this-shortcut/ Share on other sites More sharing options...
marcus Posted November 11, 2007 Share Posted November 11, 2007 mod rewrite within htaccess .htaccess RewriteEngine On RewriteRule ^([^-]*)$ /index.php?username=$1 [L] Link to comment https://forums.phpfreaks.com/topic/76909-how-do-people-do-this-shortcut/#findComment-389385 Share on other sites More sharing options...
chantown Posted November 20, 2007 Author Share Posted November 20, 2007 thanks, I tried that, but it gave me a 500 internal error Is something wrong? Link to comment https://forums.phpfreaks.com/topic/76909-how-do-people-do-this-shortcut/#findComment-395022 Share on other sites More sharing options...
chantown Posted November 20, 2007 Author Share Posted November 20, 2007 Will the above code to this:? www.istage6.com/index.php?code=12345 to www.istage6.com/12345 Link to comment https://forums.phpfreaks.com/topic/76909-how-do-people-do-this-shortcut/#findComment-395023 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.