Mod_rewrite with htaccess not working?


#1

here is my code

RewriteEngine On RewriteRule ^/forum/topic_(\d+)_(\d+)\.html /forum/script/topic_show.pl?tid=$1;pg=$2 RewriteRule ^/forum/board_(\d+)_(\d+)\.html /forum/script/board_show.pl?bid=$1;pg=$2 RewriteRule ^/forum/index\.html /forum/script/forum_show.pl RewriteRule ^/forum/start\.html /forum/script/forum.pl

and i placed this into my root but still doesn’t work? any ideas?

my structure is
www.myurl.com/forum/script/forum.pl

i am wanting
www.myurl.com/forum/index.html


#2

Try

RewriteEngine On RewriteBase / RewriteRule ^forum/topic_(\d+)_(\d+)\.html /forum/script/topic_show.pl?tid=$1;pg=$2 RewriteRule ^forum/board_(\d+)_(\d+)\.html /forum/script/board_show.pl?bid=$1;pg=$2 RewriteRule ^forum/index\.html /forum/script/forum_show.pl RewriteRule ^forum/start\.html /forum/script/forum.pl