No announcement yet.

I destroyer htaccess!

  • 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 and

    I need recovery htaccess of

    And need redirect to for all url

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

    here is a copy of its content :
    <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 mod_deflate.c>
        AddOutputFilterByType DEFLATE application/atom+xml \
                              text/javascript \
                              application/javascript \
                              application/json \
                              application/rss+xml \
                              application/ \
                              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 \
    <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/ A2592000
    <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 "\.(jpg|jpeg|png)$">
            Header set Cache-Control "max-age=1209600, public"
        <filesmatch "\.(eot|woff|otf|ttf|svg)$">
            Header set Cache-Control "max-age=2592000, public"
        # css and js should use private for proxy caching
        <filesmatch "\.(css)$">
            Header set Cache-Control "max-age=31536000, private"
        <filesmatch "\.(js)$">
            Header set Cache-Control "max-age=1209600, private"
    For redirect your domain to sub-directory you can use that method

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


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

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


      • #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, 7: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...


        • #5
          I no understand, look:

          My forum is


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


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


              • #8

                Now work good, thanks.

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


                Related Topics