Announcement

Collapse
No announcement yet.

Custom Home page

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

  • Custom Home page

    Hi,

    I followed all the instructions of this page =>
    https://www.vbulletin.com/forum/arti...stom-home-page
    added the specified code below
    Code:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^yoursite\.com$
    RewriteRule (.*) http://www.yoursite.com/$1 [R=301,L]
    RewriteRule ^$ forum/home [L]
    Modified as said in the topic =>

    Code:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^somasimple\.com$
    RewriteRule (.*) https://www.somasimple.com/$1 [R=301,L]
    RewriteRule ^$ forums/home [L]
    but there is an error because it fails with a TOO MANY REDIRECT ERROR
    Is there a mistake I made?

    Thanks
    Bernard

  • #2
    You already have a page at that location...in the first instance there needs to be nothing else there.
    MARK.B | vBULLETIN SUPPORT

    TalkNewsUK - My vBulletin 5.6.2 Demo
    AdminAmmo - My Cloud Demo

    Comment


    • #3
      Originally posted by Mark.B View Post
      You already have a page at that location...in the first instance there needs to be nothing else there.
      Yes, that's the page I created and and want as homepage!
      I followed the tutorial...
      So I do not understand what you're saying???
      Bernard

      Comment


      • #4
        But you have this in the root:
        https://www.somasimple.com/index.htm

        You need to move that first before you attempt any redirects.
        MARK.B | vBULLETIN SUPPORT

        TalkNewsUK - My vBulletin 5.6.2 Demo
        AdminAmmo - My Cloud Demo

        Comment


        • #5
          Ahhhh, that's right!
          Bernard

          Comment


          • #6
            Originally posted by Mark.B View Post
            But you have this in the root:
            https://www.somasimple.com/index.htm

            You need to move that first before you attempt any redirects.
            Tried this and added the code
            Code:
            RewriteEngine on
            RewriteCond %{HTTP_HOST} ^somasimple\.com$
            RewriteRule (.*) https://www.somasimple.com/$1 [R=301,L]
            RewriteRule ^$ forums/home [L]
            But it does not work (blank page).
            Perhaps is there an error in the above code I wrote?
            Bernard

            Comment


            • #7
              Originally posted by somasimple View Post
              Hi,
              I followed all the instructions of this page =>
              https://www.vbulletin.com/forum/arti...stom-home-page
              from the above page:

              Now that we've created the page, we need to make the root domain redirect to this page, and to do this we need to edit the .htaccess file in the root folder for your site.
              My actual .htaccess file is located inside the forum folder and not at the root of the site.

              May I move it at the root of the site?
              Bernard

              Comment


              • #8
                Found my response;
                http://www.vbulletin.com/docs/html/preparefiles_windows
                Bernard

                Comment


                • #9
                  But I suppose I must change the rewritebase setting before moving the file?
                  Bernard

                  Comment


                  • #10
                    Solved partially:
                    Added an .htaccess file in the root folder with the above code and let in place the other in the forums' folder.
                    But the home page works but it points to the article channel instead of the forums?
                    Is there a way to change that?
                    Thanks
                    Bernard

                    Comment


                    • #11
                      It does not work since a forum page is now without the /forums extension and contains links that fail and messes the forums: unable to login etc !!!
                      Bernard

                      Comment

                      Related Topics

                      Collapse

                      Working...
                      X