sean14592 Posted October 12, 2008 Share Posted October 12, 2008 ok, hi... I need to mod_rewrite http://domain.com/index.php?ty=one&oc=two so that it goes like http://domain.com/one/two Could someone paste me what goes after 'RewriteRule'. Thanks soooo much, been spending hours on this. Sean Quote Link to comment https://forums.phpfreaks.com/topic/128127-solved-multiple-variables-in-url-2/ Share on other sites More sharing options...
corbin Posted October 13, 2008 Share Posted October 13, 2008 RewriteRule ^([a-z])/([a-z]) /index.php?ty=$1&oc=$2 That should get you started. Quote Link to comment https://forums.phpfreaks.com/topic/128127-solved-multiple-variables-in-url-2/#findComment-663664 Share on other sites More sharing options...
sean14592 Posted October 13, 2008 Author Share Posted October 13, 2008 ok, thanks foir reply, sadly im still getting 404 Page when I goto /owners/reg when I have a page at index.php?ty=owners&oc=reg My code: Options +FollowSymLinks Options +Indexes RewriteEngine On RewriteRule ^([a-z])/([a-z])/ /index.php?ty=$1&oc=$2 Thanks Sean Quote Link to comment https://forums.phpfreaks.com/topic/128127-solved-multiple-variables-in-url-2/#findComment-664022 Share on other sites More sharing options...
sean14592 Posted October 13, 2008 Author Share Posted October 13, 2008 Fixed! Quote Link to comment https://forums.phpfreaks.com/topic/128127-solved-multiple-variables-in-url-2/#findComment-664314 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.