![]() |
Quick htaccess question
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 [DATE]1578176664[/DATE] at [TIME]1578176664[/TIME] --------------- This seems to work: Options +FollowSymLinks RewriteEngine On RewriteRule ^forum/(.*)$ /$1 [R=301,NC,L] Placed in public_html root |
To redirect the entire site, place the .htaccess file at the root of your web folder.
Code:
Redirect 301 / http://newsite.com/ |
Quote:
|
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 02:42 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|