vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=327754

Quick htaccess question
by pewa
04 Jan 2020 21:11

Hi,

I have moved my forum from 'domain.com/forum' to only 'domain.com'. The URL structure is the same besides that.

How do I redirect(301) all traffic using htaccess? What to write and where to put the file.

Thanks!

--------------- Added 04 Jan 2020 at 21:24 ---------------

This seems to work:

Options +FollowSymLinks
RewriteEngine On
RewriteRule ^forum/(.*)$ /$1 [R=301,NC,L]

Placed in public_html root

Hostboard 04 Jan 2020 21:48

To redirect the entire site, place the .htaccess file at the root of your web folder.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


pewa 05 Jan 2020 11:51

Quote:

Originally Posted by Hostboard (Post 2601679)
To redirect the entire site, place the .htaccess file at the root of your web folder.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Ok, does it matter if I do It like that or like my example above?

Dave 05 Jan 2020 14:00

I recommend using the one you use now as it will also redirect the user to the proper URL without "/forum".


All times are GMT. The time now is 08:10.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.