ferret147 Posted March 6, 2009 Share Posted March 6, 2009 I have a php site with page names like; http://www.domain.com/index.php?pn=events http://www.domain.com/index.php?pn=home and I would like the URL to read a little more easily like; http://www.domain.com/index.php/events http://www.domain.com/index.php/home So far what I know of mod_rewrite this is possible but just not found the correct answer yet, can anybody help? Quote Link to comment Share on other sites More sharing options...
ferret147 Posted March 6, 2009 Author Share Posted March 6, 2009 I have tryed this # domain.com/page-name/ to domain.com/index.php?pn=page-name RewriteRule ^([A-Za-z0-9-]+)/?$ index.php?name=$1 [L] But no luck with that at all Quote Link to comment Share on other sites More sharing options...
ferret147 Posted March 6, 2009 Author Share Posted March 6, 2009 Sorry to post again but I made a mistake in my first post, I want the URL's to look like this; * http://www.domain.com/events * http://www.domain.com/home Quote Link to comment 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.