Announcement

Collapse
No announcement yet.

Needing to update .htaccess file

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Needing to update .htaccess file

    I have pinged Mark and posted on his wall, but did not hear anything back yet. I am hoping someone else on the forum can give me some advise based on his article he wrote before about updating your .htaccess file to read to a Home page rather than the Forum first when going to my website.

    It is from this post before (comments are disabled in it so I am posting here)
    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.

  • #2
    Can I get an update on this? Thank you.

    Comment


    • #3
      If your forum is already in the root directory, then you wouldn't do this with .htaccess.

      You need to use site builder to change the URLs.

      Edit the forum page, it will have a URL of:
      /

      Rename this to:
      /boards

      Then edit your home page and rename it from whatever it currently is, to:
      /

      NOTE: take a full backup of your database before making the above changes.
      MARK.B | vBULLETIN SUPPORT

      TalkNewsUK - My vBulletin 5.5.2 Demo
      AdminAmmo - My Cloud Demo

      Comment


      • #4
        Mark,

        I tried this an now cannot get to the Home Page.

        Home page address was: https://www.mysite.org/home
        Forum page address is: https://www.mystie.org/forums

        I remove the name: home in the site builder and now it shows as just a /
        But going to the site it still goes to forums.

        Also, how when I just put in mysite.com it goes directly to forums and I cannot get to the home page via the site builder to edit after the change.

        Actually, that worked. Had to also update the navigation bar

        Thank you!

        Comment

        Related Topics

        Collapse

        Working...
        X