View Single Post
  #445  
Old 02-20-2006, 07:27 AM
nintendo's Avatar
nintendo nintendo is offline
 
Join Date: Dec 2001
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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]
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01456 seconds
  • Memory Usage 1,772KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete