PDA

View Full Version : Needing to update .htaccess file


Robyn Lorenz
05-15-2017, 09:05 PM
I am wanting to update my .htaccess file to go to the "Home" instead of the "Forums" when the initial web page is loaded. IE - what the vbulletin site does.
Example: If I go to the vbulletin forum page, there is a HOME there, I click on that HOME and I go to the main https://www.vbulletin.com/
This I want my site to work as well. Right now, www.mysite.com goes to the "Forum"
https://www.mysite.com/forums
I want it to go to https://www.mysite.org/home

Here is the link to the vbulletin article:
https://www.vbulletin.com/forum/arti...stom-home-page

Wondering how I can change my .htaccess file to point to the "Home" page.

Currently the .htaccess file is set to:

RewriteCond %{HTTP_HOST} ^mywebsite.org [NC]
RewriteRule ^(.*)$ http://www.mywebsite.org/$1 [L,R=301,NC]

My forum is on the root directory, NOT in the /forums directory. So I should just have to add:
RewriteRule ^$ /home [L]

Correct?
Just making sure, don't want to break the site.
Thank you in advance.

--------------- Added 1494909853 at 1494909853 ---------------

Nevermind, just had to update the page information in the site editor and navigation bar. :)