yolop Posted January 10, 2009 Share Posted January 10, 2009 i have modrewrite and i want when someone wnter to www.abd.com/game/footblall it will be like www.acb.com/game?name=footblall so i write in .htaccess RewriteEngine On RewriteRule /game/-(.*).htm$ game.php?name=$1 and it's not work please help Link to comment https://forums.phpfreaks.com/topic/140320-help-with-modrewrite/ Share on other sites More sharing options...
Daniel0 Posted January 10, 2009 Share Posted January 10, 2009 What you are doing is /game/-football.htm to /game?name=football If you want the other you'll have to do RewriteRule /game/(.*) /game?name=$1 Link to comment https://forums.phpfreaks.com/topic/140320-help-with-modrewrite/#findComment-734242 Share on other sites More sharing options...
yolop Posted January 10, 2009 Author Share Posted January 10, 2009 ok i write RewriteEngine on RewriteRule /game/(.*) /game?name=$1 and tried to enter http://www.acb.com/game/fdsf and it's not work Link to comment https://forums.phpfreaks.com/topic/140320-help-with-modrewrite/#findComment-734246 Share on other sites More sharing options...
corbin Posted January 10, 2009 Share Posted January 10, 2009 Change RewriteRule /game/(.*) /game?name=$1 to RewriteRule ^game/(.*) /game?name=$1 Link to comment https://forums.phpfreaks.com/topic/140320-help-with-modrewrite/#findComment-734252 Share on other sites More sharing options...
yolop Posted January 10, 2009 Author Share Posted January 10, 2009 RewriteEngine on RewriteRule ^game/(.*) /game.php?name=$1 that ok Link to comment https://forums.phpfreaks.com/topic/140320-help-with-modrewrite/#findComment-734256 Share on other sites More sharing options...
corbin Posted January 10, 2009 Share Posted January 10, 2009 Yeah. Does that not work? Link to comment https://forums.phpfreaks.com/topic/140320-help-with-modrewrite/#findComment-734290 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.