pewa
01-04-2020, 08:11 PM
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 1578176664 at 1578176664 ---------------
This seems to work:
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^forum/(.*)$ /$1 [R=301,NC,L]
Placed in public_html root
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 1578176664 at 1578176664 ---------------
This seems to work:
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^forum/(.*)$ /$1 [R=301,NC,L]
Placed in public_html root