The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
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 | ||
|
#3
|
|||
|
|||
|
Quote:
|
|
#4
|
|||
|
|||
|
And the above should fix the problem
|
|
#5
|
||||
|
||||
|
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 |
|
#6
|
|||
|
|||
|
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. |
|
#7
|
|||
|
|||
|
BUMP!!
|
|
#8
|
|||
|
|||
|
Quote:
|
|
#9
|
|||
|
|||
|
Quote:
yes, that's just an example url. |
|
#10
|
||||
|
||||
|
Try this ...
Edit htaccess file From Code:
# RewriteBase /forum/ Code:
RewriteBase /forum/ Edit forum to forums if needed. . |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|