hybrid kill3r Posted February 9, 2008 Share Posted February 9, 2008 I'm trying to find a way to make my website have "pretty urls". I have urls such as index.php?act=support. How would I use htaccess to convert those to a directory, for example mysite.com/support? Link to comment Share on other sites More sharing options...
Synook Posted February 9, 2008 Share Posted February 9, 2008 RewriteRule index.php\?act=(.*)$ $1 More information at http://httpd.apache.org/docs/1.3/mod/mod_r...tml#RewriteRule Link to comment Share on other sites More sharing options...
boen_robot Posted February 9, 2008 Share Posted February 9, 2008 RewriteRule index.php\?act=(.*)$ $1 More information at http://httpd.apache.org/docs/1.3/mod/mod_r...tml#RewriteRule Don't you meanRewriteRule ^(.*)$ index.php?act=$1 ?Note that with this approach, your images will be affected too.I have my own tutorial on the subject that avoids this case, and may be appropriate for your case too. Link to comment Share on other sites More sharing options...
Synook Posted February 9, 2008 Share Posted February 9, 2008 you are right boen_robot. I always get the two parameters mixed up. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.