I have a pretty simple question about RewriteRule. I am using the isset($_GET) function to call pages into my index.html so when you click on a page the address in the address bar appears like this:
http://site.com/?p=contact
I would like to get rid of the ?p= in front of the contact so it appears like this:
http://site.com/contact
I have tried many different things, but this is the current state of my htaccess file:
Options +FollowSymLinks
AddType x-mapp-php5 .php
RewriteEngine On
RewriteCond %{http_host} ^www\.codershane\.com [NC]
RewriteRule ^(.*)$ http://codershane.com/$1 [R=301,NC]
RewriteRule ^/contact /index.php?p=contact [R=301,L]
Additional info: the index.php does not show up in the address bar unless you type it, but I was under the impression that that is how it should be. You can access the pages using inxex.php or not using it. Also all the pages are located in a folder called pages.
Any help is appreciated, thanks guys.