The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
It's 301 (Permanently Moved). You're probably thinking of 404 (Page Not Found)?
|
#12
|
|||
|
|||
Nope, I'm thinking on 301,
I have 2 forums, and one of then is located in a directory, i'm moving it to it's own domain (it's about time.. ) and the code isn't working (VB NOVA) can it be because i have another htaccess file in the root folder? cous nothing had happened : |
#13
|
|||
|
|||
Yeah, you can merge the two files or if you don't know how/think you'll mess something up. Paste the other one here and I'll do it.
|
#14
|
|||
|
|||
this is the root folder htaccess file
Code:
RewriteEngine On RewriteEngine On RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L] RewriteCond %{REQUEST_FILENAME} (admincp|modcp|clientscript|cpstyles|images) RewriteRule ^(.*)$ $1 [L] # SEO Videos # https://vborg.vbsupport.ru/showthread.php?p=1117273 # ofcourse you can rename videos.html and make it for example a non existing directory /videos/ and /videos/videoindex-20.xhtml etc. RewriteCond %{HTTP_HOST} !^www\.atraf-f\.net RewriteRule (.*) http://www.atraf-f.net/$1 [L,R=301] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^videos\.html&page=([0-9]+)$ http://www.atraf-f.net/videos-page$1.html [L,R=301] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^videos\.html$ index.php?videos=1 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^videos-page([0-9]+)\.html$ index.php?videos=$1 [L] there is a board in the base domain, in a directory inside the base domain there is another board , and i want to redirect the files in the directory to a new domain (on the same server..) thanks a lot |
#15
|
|||
|
|||
Code:
Options +FollowSymLinks RewriteEngine on RewriteRule /upload/(.*) http://www.atraf-f.net/$1 RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L] RewriteCond %{REQUEST_FILENAME} (admincp|modcp|clientscript|cpstyles|images) RewriteRule ^(.*)$ $1 [L] RewriteCond %{HTTP_HOST} !^www\.atraf-f\.net RewriteRule (.*) http://www.atraf-f.net/$1 [L,R=301] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^videos\.html&page=([0-9]+)$ http://www.atraf-f.net/videos-page$1.html [L,R=301] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^videos\.html$ index.php?videos=1 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^videos-page([0-9]+)\.html$ index.php?videos=$1 [L][R=301,L] |
#16
|
|||
|
|||
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request. :\ |
#17
|
|||
|
|||
Code:
Options +FollowSymLinks RewriteEngine on RewriteRule ^upload/(.*)$ http://www.atraf-f.net/$1 RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L] RewriteCond %{REQUEST_FILENAME} (admincp|modcp|clientscript|cpstyles|images) RewriteRule ^(.*)$ $1 [L] RewriteCond %{HTTP_HOST} !^www\.atraf-f\.net RewriteRule (.*) http://www.atraf-f.net/$1 [L,R=301] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^videos\.html&page=([0-9]+)$ http://www.atraf-f.net/videos-page$1.html [L,R=301] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^videos\.html$ index.php?videos=1 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^videos-page([0-9]+)\.html$ index.php?videos=$1 [L][R=301,L] If that doesn't work try: Code:
Options +FollowSymLinks RewriteEngine on RewriteRule ^upload\/(.*)$ http://www.atraf-f.net/$1 RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L] RewriteCond %{REQUEST_FILENAME} (admincp|modcp|clientscript|cpstyles|images) RewriteRule ^(.*)$ $1 [L] RewriteCond %{HTTP_HOST} !^www\.atraf-f\.net RewriteRule (.*) http://www.atraf-f.net/$1 [L,R=301] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^videos\.html&page=([0-9]+)$ http://www.atraf-f.net/videos-page$1.html [L,R=301] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^videos\.html$ index.php?videos=1 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^videos-page([0-9]+)\.html$ index.php?videos=$1 [L][R=301,L] |
#18
|
|||
|
|||
it redirects, but not in a good way, it lets me browse the forum like if the forum is located in the folder, instead moving me to the same path at the other domain :\
please try to help me.. |
#19
|
|||
|
|||
What's the first domain so I can see & what code did you use, the first or the second?
|
#20
|
|||
|
|||
both of them are doing the same thing,
the basic domain is http://www.atraf-f.net and the board that is located in http://www.atraf-f.net/upload (i've uploaded this board just to check the script) the real board is in an other directory.. it now has RewriteRule ^upload\/(.*)$ http://www.atraf-f.net/$1 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|