Topic: Mod Rewrite -- SEO Friendly URL
I cannot seem to figure out how to get the Mod Rewrite to work. I either get a 500 Internal Service Error, or a 404 page (usually when I delete RewriteBase from the htaccess file).
Does it work with $PHP_SELF or am I out of luck?
Thank you!
Edit: I am using UTF-8
This is what my .htaccess file looks like:
Just checked, my host allows rewrite as long as it is noted correctly in the htaccess.
RewriteEngine On
RewriteBase
RewriteRule ^post/(.*)/(.*)-(.*).html(.*)$ ?subaction=showfull&id=$3&url=$2$4 [L,NC]
RewriteRule ^postpage/(.*).html(.*)$ ?start_from=$1$2 [L,NC]
RewriteRule ^comments/(.*)/(.*)-(.*).html(.*)$ ?subaction=showcomments&id=$3&url=$2$4 [L,NC]
RewriteRule ^commentspage/(.*)/(.*)/(.*)-(.*).html(.*)$ ?comm_start_from=$1&subaction=showcomments&id=$4&url=$3$5 [L,NC]
RewriteRule ^archiveindex/(.*).html(.*)$ ?archive=$1&subaction=list-archive$2 [L,NC]
RewriteRule ^archive/(.*).html(.*)$ ?subaction=showfull&url=$1$2 [L,NC]
RewriteRule ^archivepage/(.*)/(.*).html(.*)$ ?start_from=$2&archive=$1&subaction=list-archive$3 [L,NC]