Forum Moderators: phranque
[example.com...]
into:
[example.com...]
?
thank you in advance!
RewriteCond %{REQUEST_URI}!^/community-
RewriteRule ^/community-([^-]*)-([0-9]*)-([0-9]*)-([^-]*)\.htm$ /community/index.php?action=$1;board=$2;threadid=$3;start=$4 [L]
I copied the [L] from a rule I read in another thread, but I'm not really sure what it is for... I'll look it up
please let me know if it's ok :)
For use in .htaccess per-directory context, you'll need to remove the leading slash in the RewriteRule pattern:
RewriteCond %{REQUEST_URI} !^/community-
RewriteRule [b]^co[/b]mmunity-([^-]*)-([0-9]*)-([0-9]*)-([^-]*)\.htm$ /community/index.php?action=$1;board=$2;threadid=$3;start=$4 [L]
Take a look at your raw error log or access log, and see what the output URI was that caused the 404. In general, badly-written mod_rewrite code or the mod_rewrite module being missing or not allowed will result in a 500-Server Error, so I suspect you are very close to a working rule.
If yu don't have access to your raw logs, then temporarily change the flags in the RewriteRule from [L] to [R=301,L]. This will make the rewritten URI visible in the address bar of your browser.
Jim
about the change you told me, I did it, but it still gave me a "HTTP 404 - File not found", so I'm guessing that mod rewrite may in fact not be ON in my account... I'll message my webhost asking about this
after I confirm it's enabled and I try again, I'll poast here to let you guys know if it worked or not :)