I have a user recently who installed the software and the rewrite rules are not working as expected.
The following example rule works:
http://domain.com/forums/Category-t123.html
The following does not
http://domain.com/forums/Category-t123. ... etlastpost
This produces a 404 error. Any url that has an ampersand immediately following the .html produces the 404 (note also this is the only user that has reported this).
He is using Apache 1.3.3 with php executing as fastcgi module.
The rule is like so
- Code: Select all
RewriteRule ^(.*)[-_,]t([0-9]*)\.html(.*)$ index.php?showtopic=$2$3 [L]
This rule should take any characters (a title, traditionally) followed by a dash, underscore or comma, then "t" plus the topic id, followed by ".html", and then an optional string and turn it into "index.php?showtopic=##(optional string)".
Has anyone heard of this or have any ideas why this is failing, and at that only for this one user?
I've even tried changing the argument separators in php to semicolons (or software supports the semicolon separators), but get the same result.
If I change the url to
http://domain.com/forums/Category-t123. ... etlastpost
I no longer get the 404 but the functionality is incorrect (i.e. "view=getlastpost" is ignored, and specifically in our case the user is redirected to the main topic page). If I change it to a hash #, the argument is simply ignored with no redirect.