Custom Home page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • somasimple
    Senior Member
    • Jul 2005
    • 364
    • 5.3.x

    Custom Home page

    Hi,

    I followed all the instructions of this page =>
    Many vBulletin sites have historically used some sort of portal, or even the vB4 CMS, as their default "landing" page if you

    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 (.*) http[B]s[/B]://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
  • Mark.B
    vBulletin Support
    • Feb 2004
    • 24287
    • 6.0.X

    #2
    You already have a page at that location...in the first instance there needs to be nothing else there.
    MARK.B
    vBulletin Support
    ------------
    My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
    My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

    Comment

    • somasimple
      Senior Member
      • Jul 2005
      • 364
      • 5.3.x

      #3
      Originally posted by Mark.B
      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

      • Mark.B
        vBulletin Support
        • Feb 2004
        • 24287
        • 6.0.X

        #4
        But you have this in the root:


        You need to move that first before you attempt any redirects.
        MARK.B
        vBulletin Support
        ------------
        My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
        My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

        Comment

        • somasimple
          Senior Member
          • Jul 2005
          • 364
          • 5.3.x

          #5
          Ahhhh, that's right!
          Bernard

          Comment

          • somasimple
            Senior Member
            • Jul 2005
            • 364
            • 5.3.x

            #6
            Originally posted by Mark.B
            But you have this in the root:


            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 (.*) http[B]s[/B]://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

            • somasimple
              Senior Member
              • Jul 2005
              • 364
              • 5.3.x

              #7
              Originally posted by somasimple
              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

              • somasimple
                Senior Member
                • Jul 2005
                • 364
                • 5.3.x

                #8
                Found my response;
                Bernard

                Comment

                • somasimple
                  Senior Member
                  • Jul 2005
                  • 364
                  • 5.3.x

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

                  Comment

                  • somasimple
                    Senior Member
                    • Jul 2005
                    • 364
                    • 5.3.x

                    #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

                    • somasimple
                      Senior Member
                      • Jul 2005
                      • 364
                      • 5.3.x

                      #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...