Announcement

Collapse
No announcement yet.

I destroyer htaccess!

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

  • I destroyer htaccess!

    Hello, first i upgrade 4.2 to 5.0.2

    Then cheack and no redirect to v5

    Then change codes in both htaccess

    Now for error i have same code in htaccess of myforum.com/ and myforum.com/v5

    I need recovery htaccess of myforum.com

    And need redirect myforum.com to myforum.com/v5 for all url

  • #2
    Hi,
    the default .htaccess is attached with vBulletin 5 package in /upload folder

    here is a copy of its content :
    Code:
    <IfModule mod_rewrite.c>
        RewriteEngine On
    
        # Send css calls directly to the correct file VBV-7807
        RewriteRule ^css.php$ core/css.php [NC,L]
    
        # Redirect old install path to core.
        RewriteRule ^install/ core/install/ [NC,L]
    
        # Main Redirect
        RewriteCond %{REQUEST_URI} !\.(gif|jpg|jpeg|png|css)$
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^(.*)$ index.php?routestring=$1 [L,QSA]
    
        # Because admincp is an actual directory.
        RewriteRule ^(admincp/)$ index.php?routestring=$1 [L,QSA]
    
    </IfModule>
    
    <IfModule mod_deflate.c>
        AddOutputFilterByType DEFLATE application/atom+xml \
                              text/javascript \
                              application/javascript \
                              application/json \
                              application/rss+xml \
                              application/vnd.ms-fontobject \
                              application/x-font-ttf \
                              application/xhtml+xml \
                              application/xml \
                              font/opentype \
                              image/svg+xml \
                              image/x-icon \
                              text/css \
                              text/html \
                              text/plain \
                              text/x-component \
                              text/xml
    </IfModule>
    
    <IfModule mod_expires.c>
        ExpiresActive On
        ExpiresByType application/x-javascript A1209600
        ExpiresByType text/javascript A1209600
        ExpiresByType application/javascript A1209600
        ExpiresByType text/css A31536000
        ExpiresByType image/x-icon A2592000
        ExpiresByType image/icon A2592000
        ExpiresByType application/x-ico A2592000
        ExpiresByType application/ico A2592000
        ExpiresByType image/gif A2592000
        ExpiresByType image/jpeg A1209600
        ExpiresByType image/jpg A1209600
        ExpiresByType image/png A1209600
        ExpiresByType application/x-shockwave-flash A1209600
        ExpiresByType font/ttf A2592000
        ExpiresByType font/otf A2592000
        ExpiresByType font/x-woff A2592000
        ExpiresByType image/svg+xml A2592000
        ExpiresByType font/truetype A2592000
        ExpiresByType font/opentype A2592000
        ExpiresByType application/x-font-woff A2592000
        ExpiresByType application/vnd.ms-fontobject A2592000
    </IfModule>
    
    <IfModule mod_headers.c>
        Header set Connection keep-alive
        <filesmatch "\.(ico|flv|gif|swf|eot|woff|otf|ttf|svg)$">
            Header set Cache-Control "max-age=2592000, public"
        </filesmatch>
        <filesmatch "\.(jpg|jpeg|png)$">
            Header set Cache-Control "max-age=1209600, public"
        </filesmatch>
        <filesmatch "\.(eot|woff|otf|ttf|svg)$">
            Header set Cache-Control "max-age=2592000, public"
        </filesmatch>
        # css and js should use private for proxy caching https://developers.google.com/speed/docs/best-practices/caching#LeverageProxyCaching
        <filesmatch "\.(css)$">
            Header set Cache-Control "max-age=31536000, private"
        </filesmatch>
        <filesmatch "\.(js)$">
            Header set Cache-Control "max-age=1209600, private"
        </filesmatch>
    </IfModule>
    For redirect your domain to sub-directory you can use that method

    Former vBulletin Support Staff
    Need Help?, Or P.M. Me

    Comment


    • #3
      Yes thanks, but with this (myforum.com/v5) i no have problem, i have problem with .htaccess of (myforum.com) directory, i have empy now.

      Help me please, my manager go to kill me :S

      Comment


      • #4
        In your vBulletin .htaccess, add the following line underneath the 'RewriteEngine On' one:

        RewriteBase /v5/

        In your root .htaccess, add the following near the top:

        RewriteCond %{REQUEST_URI} !^/v5/ [NC]

        Does this resolve this for you?
        Last edited by Aakif N.; Fri 31 May '13, 8:33am. Reason: Correct typo.
        Vote for:

        - *Admin Settable Paid Subscription Reminder Timeframe*
        -
        *PM - Add ability to reply to originator only*
        - Add Admin ability to auto-subscribe users to specific channel(s)
        - "Quick Route" Interface...

        Comment


        • #5
          I no understand, look:
          http://www.mediafire.com/?0l8p7i8j4f0qj0a
          My forum is gamezgroups.com

          Comment


          • #6
            Submit a ticket with FTP details and I will resolve this for you.
            Aakif Nazir

            Comment


            • #7
              Originally posted by Aakif Nazir View Post
              Submit a ticket with FTP details and I will resolve this for you.
              Done, send

              Comment


              • #8


                Now work good, thanks.

                Last edited by sergiomc; Fri 31 May '13, 9:42pm.

                Comment

                Related Topics

                Collapse

                Working...
                X