peeeer Posted June 26, 2009 Share Posted June 26, 2009 Hi, I have links like these that I want to change: mypage.com?page=missions&id=5 mypage.com?page=hello I tried to change them into easier links with this: Options +FollowSymLinks RewriteEngine On RewriteRule ^([^/]*)/([^/]*)$ /index.php?page=$1&id=$2 [L] It works but if I want to access pages like (mypage.com?page=hello) I have to write: mypage.com/hello/ and if I write without the slash in the end like this mypage.com/hello it doesn't work. How do I fix it? Quote Link to comment https://forums.phpfreaks.com/topic/163800-help-with-regular-expression-and-mod_rewrite/ 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.