Quote:
Originally Posted by Immortal
If you find a bug, please let me know so I can fix in the next version.
|
Creating a reply generated a 404 error page.
forumpostersunion.com/test-board/t-test-92-page.html#post623
RewriteRule ^([^.]+)/t\-([^.]+)\-([^.]+)\-page\.html$ showthread.php?t=$3&page=$4&is_vrewrite=yes [L]
fixed it. (For older apache versions, not having a \ before - or a period in the code for the new URL can generate an Internel Server Error message, a $ should be at the end of the code for the new URL, and security wise, ([^.]+) is better.)
Code:
RewriteEngine On
RewriteBase /
RewriteRule ^([^.]+)/t\-([^.]+)\-([^.]+)/go=([^.]+)$ showthread\.php?t=$3&goto=$4&is_vrewrite=yes [L]
RewriteRule ^([^.]+)/p\-([^.]+)\-([^.]+).html$ showthread\.php?p=$3&is_vrewrite=yes [L]
RewriteRule ^f\-([^.]+)\-([^.]+)\-page([^.]+).html$ forumdisplay\.php?f=$2&page=$3&order=desc&is_vrewrite=yes [L]
RewriteRule ^f\-([^.]+)\-([^.]+).html/page([^.]+)daysprune([^.]+)\-order([^.]+)\-sort([^.]+)$ forumdisplay.php?f=$2&page=$3daysprune=$4&order=$5&sort=$6&is_vrewrite=yes [L]
RewriteRule ^f\-([^.]+)\-([^.]+).html/daysprune([^.]+)\-order([^.]+)\-sort([^.]+)$ forumdisplay\.php?f=$2&daysprune=$3&order=$4&sort=$5&is_vrewrite=yes [L]
RewriteRule ^f\-([^.]+)\-([^.]+).html$ forumdisplay\.php?f=$2&is_vrewrite=yes [L]
RewriteRule ^u\-([^.]+)\-([^.]+).html$ member\.php?u=$2&is_vrewrite=yes [L]
RewriteRule ^([^.]+)\-([^.]+)\-newpost\.html$ showthread.php?goto=newpost&t=$2 [L]
RewriteRule ^([^.]+)/t\-([^.]+)\-([^.]+)\-page([^.]+)\.html$ showthread.php?t=$3&page=$4&is_vrewrite=yes [L]
RewriteRule ^([^.]+)/t\-([^.]+)\-([^.]+)\-page\.html$ showthread.php?t=$3&page=$4&is_vrewrite=yes [L]
RewriteRule ^([^.]+)/t\-([^.]+)\-([^.]+)\.html$ showthread.php?t=$3&is_vrewrite=yes [L]
RewriteRule ^markread.html$ forumdisplay\.php?do=markread [L]
RewriteRule ^([^.]+)/p\-([^.]+)\-([^.]+)\.html#([^.]+)$ showthread.php?p=$3#post$4 [L]
RewriteRule ^print\-([^.]+)\-([^.]+)\.html$ printthread.php?t=$2 [L]
RewriteRule ^sendtofriend\-([^.]+)\-([^.]+)\.html$ sendmessage.php?do=sendtofriend&t=$2 [L]
RewriteRule ^search\-([^.]+)\.html$ search.php?do=$1 [L]
RewriteRule ^([^.]+)\-([^.]+)/newthread\.php$ newthread.php?do=newthread&f=$2 [L]
RewriteRule ^([^.]+)/newpostnoquote\-([^.]+)\.php$ newreply.php?do=newreply&noquote=1&p=$2 [L]
RewriteRule ^([^.]+)/newpost\-([^.]+)\.php$ newreply.php?do=newreply&p=$2 [L]
RewriteRule ^p\-([^.]+)\.html$ showpost.php?p=$1&postcount=$1 [L]