On my wordpress site a have a few pages. On one page i present the content depending on $_GET['ID':
http://www.schoolsout.se/site/hitta-studentskiva?eventID=0000000013
I want the URL to be like this:
http://www.schoolsout.se/site/hitta-studentskiva/0000000013.html
But I can't make it work. In the .htaccess I have added this line:
RewriteEngine On
RewriteRule ^site/hitta-studentskiva/([^/]*)\.html$ /site/hitta-studentskiva?eventID=$1 [L]
So now it looks like this:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /site/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /site/index.php [L]
</IfModule>
# END WordPress
RewriteEngine On
RewriteRule ^site/hitta-studentskiva/([^/]*)\.html$ /site/hitta-studentskiva?eventID=$1 [L]
I haven't worked with mod rewrite earlier.