Travis-Mc
Member
I can't seem to get my redirects set up properly after importing from vb3.8 to xenforo
vb3.8 was installed at http://www.example.com/forum
and Xenforo is installed at http://www.example.com/
I'm using the redirect scripts and they're working, but because I had to create the folder /forum to put them in, other pages in that directory need to be redirected as well like tags.php, search.php, memberlist.php, and other custom pages like all_albums.php. When I go to those pages now instead of getting the xenforo 404 error page, I get a page that just says:
Not Found
The requested URL /forum/memberlist.php was not found on this server.
I'm assuming this is because the directory exists but the files don't?
I've tried adding some redirects in the .htaccess files in both the root directory and the /forum directory but I can't seem to get it right.
My root directory .htacess file is the default one provided except I've added this to the top:
How can I redirect those other pages that used to exist in the /forum directory to their new pages in xenforo?
For example, I'd like to redirect forum/tags.php to /tags
The second issue relates to RedirectMatch 301 ^/forum/$ /forums/
I'm using Featured Threads as home page so I added the code above so http://www.example.com/forum would redirect to http://www.example.com/forums, but other pages in the directory wouldn't redirect so the scripts would still work.
Initially I wanted /forums to be /forum so I setup a route filter to redirect fourms/ to forum/ but then when I went to http://www.example.com/forum I would see a list of what was in the directory
Can I change /forums to /forum and still use the redirect scripts?
I hope I'm making sense! Thanks for taking the time to read this.
vb3.8 was installed at http://www.example.com/forum
and Xenforo is installed at http://www.example.com/
I'm using the redirect scripts and they're working, but because I had to create the folder /forum to put them in, other pages in that directory need to be redirected as well like tags.php, search.php, memberlist.php, and other custom pages like all_albums.php. When I go to those pages now instead of getting the xenforo 404 error page, I get a page that just says:
Not Found
The requested URL /forum/memberlist.php was not found on this server.
I'm assuming this is because the directory exists but the files don't?
I've tried adding some redirects in the .htaccess files in both the root directory and the /forum directory but I can't seem to get it right.
My root directory .htacess file is the default one provided except I've added this to the top:
Code:
RedirectMatch 301 ^/forum/$ /forums/
# redirect to www
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [L,R]
How can I redirect those other pages that used to exist in the /forum directory to their new pages in xenforo?
For example, I'd like to redirect forum/tags.php to /tags
The second issue relates to RedirectMatch 301 ^/forum/$ /forums/
I'm using Featured Threads as home page so I added the code above so http://www.example.com/forum would redirect to http://www.example.com/forums, but other pages in the directory wouldn't redirect so the scripts would still work.
Initially I wanted /forums to be /forum so I setup a route filter to redirect fourms/ to forum/ but then when I went to http://www.example.com/forum I would see a list of what was in the directory
Can I change /forums to /forum and still use the redirect scripts?
I hope I'm making sense! Thanks for taking the time to read this.