views:

178

answers:

1

I installed a mod (pretty urls) to rewrite the urls of this SMF forum and it works for all the boards except this one:

http://mmaturf.com/forum/genghis-con's-turf/

I believe it has to do with apostrophe, but my mod rewrite skills are negligible.

The rule that was created looks like this:

# Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

Any assistance would be appreciated!

A: 

Try escaping the apostrophe in the rule, i.e.

RewriteRule ^([-_!~*\'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*\'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]
fooquency
Thanks for the answer, although it didn't seem to fix the problem!
Ben