vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   404 not found when deleting threads.. (https://vborg.vbsupport.ru/showthread.php?t=309680)

lsti 03-19-2014 05:49 AM

404 not found when deleting threads..
 
Hello, i am using custom rewrite url's provided by vBulletin.

My forums are located in the forums directory.

So, when ever i delete (physically remove) a thread, it results in 404 not found. Other than that the rules work fine.

This is my actual url..

www.myurl.com/forums/forums/56-General

When i delete a therad from this section, i am taken to

www.myurl.com/forums/56-General

Which results in a 404 not found, guess the default ones have some issues if the url is in the forums folder.


Code:

RewriteEngine on

# If you are having problems or are using VirtualDocumentRoot, uncomment this line and set it to your vBulletin directory.
# RewriteBase /forum/

# If you are having problems with the rewrite from content/ to content.php, uncomment this line to turn MultiViews off.
# Options -MultiViews

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d

RewriteRule ^.*$ - [NC,L]

# Forum
RewriteRule ^threads/.* showthread.php [QSA]
RewriteRule ^forums/.* forumdisplay.php [QSA]
RewriteRule ^members/.* member.php [QSA]
RewriteRule ^blogs/.* blog.php [QSA]
RewriteRule ^entries/.* entry.php [QSA]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d

RewriteRule ^.*$ - [NC,L]

# MVC
RewriteRule ^(?:(.*?)(?:/|$))(.*|$)$ $1.php?r=$2 [QSA]

# Check MVC result
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.*)$ - [NC,L]
RewriteRule ^(.*)$ - [R=404,L]


Any help would be appreciated.

Regards.

ForceHSS 03-19-2014 06:45 AM

https://vborg.vbsupport.ru/showthrea...ight=404+error
https://vborg.vbsupport.ru/showthrea...ight=404+error

I also have this at the bottom of my htaccess
ErrorDocument 400 /400.php
ErrorDocument 401 /401.php
ErrorDocument 403 /403.php
ErrorDocument 404 /404.php
ErrorDocument 500 /500.php

lsti 03-21-2014 05:50 AM

Quote:

Originally Posted by ForceHSS (Post 2488269)
https://vborg.vbsupport.ru/showthrea...ight=404+error
https://vborg.vbsupport.ru/showthrea...ight=404+error

I also have this at the bottom of my htaccess
ErrorDocument 400 /400.php
ErrorDocument 401 /401.php
ErrorDocument 403 /403.php
ErrorDocument 404 /404.php
ErrorDocument 500 /500.php

Thanks but i think you have mis understood my question. When we delete a thread, we should be directed to forum display right? but mine is taking to 404 not found. Check the url's i posted.

ForceHSS 03-21-2014 05:51 AM

And the above should fix the problem

Jain Farstrider 03-21-2014 08:51 AM

1 Attachment(s)
I assume it is safe to do so in my case but am I able to put in below the rewrite engine in my .htaccess? Just mildly concerned since I assume that rewrite in my .htaccess is regarded as custom and thus I cannot use the plugin from ForceHSS's reply post.

I guess it works the same as additional .css which you can put in as many diffrent snippets as you need?

ErrorDocument 400 /400.php
ErrorDocument 401 /401.php
ErrorDocument 403 /403.php
ErrorDocument 404 /404.php
ErrorDocument 500 /500.php

lsti 03-21-2014 08:57 AM

Quote:

Originally Posted by ForceHSS (Post 2488680)
And the above should fix the problem

I tried this but it didn't fix the problem.

https://vborg.vbsupport.ru/showthrea...ight=404+error


Since i am on 5.3, i haven't tried the other one.

lsti 03-25-2014 03:34 AM

BUMP!!

ForceHSS 03-25-2014 03:54 AM

Quote:

Originally Posted by lsti (Post 2488697)
I tried this but it didn't fix the problem.

https://vborg.vbsupport.ru/showthrea...ight=404+error


Since i am on 5.3, i haven't tried the other one.

Are you using vb5? Also the site link u have in the first post no forums are installed on it

lsti 03-25-2014 07:14 AM

Quote:

Originally Posted by ForceHSS (Post 2489406)
Are you using vb5? Also the site link u have in the first post no forums are installed on it

No, i am on vb4.2.2. I meant the PHP version 5.3.0

yes, that's just an example url.

Seven Skins 03-25-2014 10:13 AM

Try this ...

Edit htaccess file From
Code:

# RewriteBase /forum/
To

Code:

RewriteBase /forum/

Edit forum to forums if needed.

.


All times are GMT. The time now is 02:41 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01234 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete