Incorrect link display error, not forward to home

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PJKCards
    Senior Member
    • Jul 2005
    • 282
    • 3.0.3

    Incorrect link display error, not forward to home

    Hello,
    I want to display an error page when an invalid link is accessed, instead of having it forward to my homepage like it does now.

    For example, this is a correct link to a post:


    When someone goes here (incorrect), I want it to display an error, saying it was invalid, instead of forwarding it to my homepage:
    http://www.domain.com/showthread.php?p=113579

    How do I do this? Is it just a setting, or something more? Surely this is something that comes up when people move their forum from a root directory to /forum.

    Thanks.
    -Pat
  • Zachery
    Former vBulletin Support
    • Jul 2002
    • 59097

    #2
    vBulletin does not foward lost/bad urls to the homepage.

    Comment

    • PJKCards
      Senior Member
      • Jul 2005
      • 282
      • 3.0.3

      #3
      It must be my .htaccess then, right? Here is a copy of the .htaccess in my public_html/domain/forum:
      Code:
      Options +FollowSymLinks
      RewriteEngine On
      RewriteCond %{HTTP_HOST} ^domain\.com
      RewriteRule ^(.*)$ http://www.domain.com/$1 [R=permanent,L]
      RewriteRule ^(.*)/(styleid=(.*))$ showthread.php?&%{QUERY_STRING} [L]
      RewriteRule ^(.*)/(showthread\.php)$ showthread.php?&%{QUERY_STRING} [L]
      RewriteRule ^(.*)/t-(.*)-(.*)-new.html showthread.php?t=$3&goto=newpost&%{QUERY_STRING} [L]
      RewriteRule ^(.*)/t-(.*)-(.*)-last.html showthread.php?t=$3&goto=lastpost&%{QUERY_STRING} [L]
      RewriteRule ^(.*)/t-(.*)-(.*)-print.html/(.*)$ printthread.php?t=$3&%{QUERY_STRING}&is_vrewrite=yes [L]
      RewriteRule ^(.*)/t-(.*)-(.*)-print.html printthread.php?t=$3&is_vrewrite=yes&%{QUERY_STRING} [L]
      RewriteRule ^(.*)/t-(.*)-(.*)-nextnewest.html showthread.php?t=$3&goto=nextnewest&is_vrewrite=yes&%{QUERY_STRING} [L]
      RewriteRule ^(.*)/t-(.*)-(.*)-nextoldest.html showthread.php?t=$3&goto=nextoldest&is_vrewrite=yes&%{QUERY_STRING} [L]
      RewriteRule ^p-(.*)-post(.*)/postcount(.*).html showpost.php?p=$2&postcount=$3&is_vrewrite=yes&%{QUERY_STRING} [L]
      RewriteRule ^(.*)/t-(.*)-(.*)-page(.*).html showthread.php?t=$3&page=$4&is_vrewrite=yes&%{QUERY_STRING} [L]
      RewriteRule ^(.*)/t-(.*)-(.*)/page(.*).html showthread.php?t=$3&page=$4&is_vrewrite=yes&%{QUERY_STRING} [L]
      RewriteRule ^(.*)/t-(.*)-(.*).html/(.*)$ showthread.php?t=$3&%{QUERY_STRING}&is_vrewrite=yes [L]
      RewriteRule ^(.*)/t-(.*)-(.*).html showthread.php?t=$3&is_vrewrite=yes&%{QUERY_STRING} [L]
      RewriteRule ^f-(.*)-(.*)/misc\.php$ misc.php?&%{QUERY_STRING}&is_vrewrite=yes&%{QUERY_STRING} [L]
      RewriteRule ^members/(.*)-(.*).html member.php?u=$2&is_vrewrite=yes&%{QUERY_STRING} [L]
      RewriteRule ^u-(.*)-(.*).html(.*) member.php?u=$2&is_vrewrite=yes&%{QUERY_STRING}$3 [L]
      RewriteRule ^u-(.*)-(.*).html member.php?u=$2&is_vrewrite=yes&%{QUERY_STRING} [L]
      RewriteRule ^f-(.*)-(.*)/page(.*).html/(.*)$ forumdisplay.php?f=$2&&page=$3%{QUERY_STRING}&is_vrewrite=yes [L]
      RewriteRule ^f-(.*)-(.*)/(.*)$ forumdisplay.php?f=$2&&%{QUERY_STRING}&is_vrewrite=yes [L]
      RewriteRule ^f-(.*)-(.*)/$ forumdisplay.php?f=$2&%{QUERY_STRING}&is_vrewrite=yes [L]
      RewriteRule ^search-(.*).html$ search.php?do=$1 [L]
      I have a different .htaccess in public_html/, does this affect the public_html/domain/forum? Any assistance getting this squared away is greatly appreciated.

      Thanks.

      Comment

      • PJKCards
        Senior Member
        • Jul 2005
        • 282
        • 3.0.3

        #4
        Any assistance getting this squared away is greatly appreciated. I'd like to get it fixed ASAP.

        Comment

        • peterska2
          Senior Member
          • Oct 2003
          • 8869
          • 3.7.x

          #5
          I'm sorry but we do not provide official support for custom coding. However you can try asking for this kind of help over at the vB mod site: http://www.vbulletin.org/forum/

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...