Announcement

Collapse
No announcement yet.

URL problem with my new vBulletin installation

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

  • Wayne Luke
    replied
    You need to set the RewriteBase line at the top of the file as specified in the comments. The vBulletin directory is trying to use the .htaccess for the parent directory which is causing problems. That line tells the server to ignore rewrites from the parent directories and only use the ones in the vBulletin .htaccess file.

    So since your vBulletin is in the /vBulletin5/ directory the rewrite base line should be:
    RewriteBase /vBulletin5/

    Leave a comment:


  • Sean James
    replied
    Originally posted by Wayne Luke View Post
    You're not using any of the required vBulletin 5 rewrite rules. We require that you use the provided .htaccess file that comes with vBulletin in order for the system to work. If you do not, then vBulletin doesn't know where to link.

    All of the stuff in your existing file is custom and we cannot provide support for it.
    Hey Wayne, thank you for your response,
    Is there a .htaccess to use for the sites root directory even though my forum is located in /vBulletin5/ directory? There is a .htacess in my forum directory which I have not touched.

    Code:
    <IfModule mod_rewrite.c>
        RewriteEngine On
    
        # In some cases where you have other mod_rewrite rules, you may need to remove the 
        # comment on the following RewriteBase line and change it to match your folder name. 
        # This resets the other mod_rewrite rules for just this directory
        # If your site was www.example.com/forum, the setting would be /forum/
        #RewriteBase /
    
        #To redirect users to the secure version of your site, uncomment the lines below 
        #RewriteCond %{HTTPS} !=on
        #RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
    
        # 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/x-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>
    Thanks again

    Leave a comment:


  • Wayne Luke
    replied
    You're not using any of the required vBulletin 5 rewrite rules. We require that you use the provided .htaccess file that comes with vBulletin in order for the system to work. If you do not, then vBulletin doesn't know where to link.

    All of the stuff in your existing file is custom and we cannot provide support for it.

    Leave a comment:


  • Sean James
    replied
    I am still having this issue, my host has checked my .htaccess and cannot find the issue, and I have created a vBulletin support ticket but they will not help me unless I pay for support

    This is a clean install on vBulletin without any mods installed,

    Leave a comment:


  • Sean James
    commented on 's reply
    That is what I thought as well, but I am unable to find the problem in my HTACCESS file

    Code:
    RewriteOptions inherit
    Options -MultiViews
    RewriteEngine On
    
    RewriteBase /forums/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
    RewriteRule \.(js|css|jpeg|jpg|gif|png|ico|map)(\?|$) /forums/404error.php [L,NC]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
    RewriteRule . /forums/index.php [L]
    RewriteCond %{HTTP_HOST} ^.*$
    RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
    RewriteRule ^/?$ "https\:\/\/www\.bluepearl\-skins\.com\/forums\/store" [R=301,L]
    
    RewriteRule .*\.()$ - [F,NC]
    
    RewriteRule .*\.()$ - [F,NC]
    
    RewriteCond %{HTTP_REFERER} !^http://bluepearl-skins.com/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://bluepearl-skins.com$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.bluepearl-skins.com/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.bluepearl-skins.com$      [NC]
    RewriteCond %{HTTP_REFERER} !^https://bluepearl-skins.com/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^https://bluepearl-skins.com$      [NC]
    RewriteCond %{HTTP_REFERER} !^https://www.bluepearl-skins.com/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^https://www.bluepearl-skins.com$      [NC]
    RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ https://www.bluepearl-skins.com [R,NC]

  • Mark.B
    replied
    You have some sort of custom redirect rule in place there.

    Leave a comment:


  • Sean James
    started a topic URL problem with my new vBulletin installation

    URL problem with my new vBulletin installation

    Hey!
    Ive installed a new installation of vBulleitn5 on my server, but I am having issues with it loading, for example if I load the site using:
    https://www.bluepearl-skins.com/vBulletin5/index.php I have no problems, but if I use:
    https://www.bluepearl-skins.com/vBulletin5/ im redirected to my main site.

    Any ideas? thanks!

Related Topics

Collapse

Working...
X