Results 1 to 14 of 14
Like Tree1Likes
  • 1 Post By Andrés Durán Hewitt

Problem with htaccess I beleive - main page is blank others are fine

This is a discussion on Problem with htaccess I beleive - main page is blank others are fine within the Troubleshooting forums, part of the vBSEO SEO Plugin category; If you go to http://www.site.com/forum/ my site is blank if you go to http://www.site.com/forum/index.php all is OK and you can ...

  1. #1
    Junior Member
    Real Name
    D johnson
    Join Date
    Oct 2010
    Posts
    19
    Liked
    0 times

    Problem with htaccess I beleive - main page is blank others are fine

    If you go to http://www.site.com/forum/ my site is blank if you go to http://www.site.com/forum/index.php all is OK and you can navigate through the forum no problem including sub pages and the sub-forums. However most home links point to http://www.site.com/forum/ so google is seeing a blank page. I am using PHPFox and Vbulletin 3.x

    Here is what I have in my .htaccess in both the site root and forum root

    RewriteCond %{HTTP_HOST} !^www\.site\.com
    RewriteRule (.*) http://www.site.com/forum/$1 [L,R=301]

    redirect 301 http://www.site.com/forum/ http://www.site.com/forum/index.php
    redirect 301 http://www.site.com/forum http://www.site.com/forum/index.php
    redirect 301 http://site.com/forum/ http://www.site.com/forum/index.php

    Any help would be appreciated.

  2. #2
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,111
    Liked
    622 times
    Blog Entries
    4
    What is your full .htaccess content ?
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  3. #3
    Junior Member
    Real Name
    D johnson
    Join Date
    Oct 2010
    Posts
    19
    Liked
    0 times
    This is the one in the root of the site

    # deny from all
    # allow from 66.162.9.208 #IP

    # php_value max_input_time -1
    # php_flag display_errors On
    redirect 301 http://www.site.com/forum/ http://www.site.com/forum/index.php
    redirect 301 http://www.site.com/forum http://www.site.com/forum/



    ErrorDocument 403 /index.php?do=/public/error/403/
    ErrorDocument 404 /index.php?do=/public/error/404/

    RewriteEngine On
    ##RewriteRule ^arcade/gamedata/$ /file/arcade/gamedata/ [L]
    RewriteRule ^arcade/gamedata/(.*) /file/arcade/gamedata/$1 [L]

    Options +FollowSymlinks

    RewriteRule ^gallery/thumb/([0-9]+)-([a-zA-Z0-9\-_]*).jpg$ /file/pic/gallery/thumb/$1.jpg [L]
    RewriteRule ^gallery/large/([0-9]+)-([a-zA-Z0-9\-_]*).jpg$ /file/pic/gallery/$1.jpg [L]
    RewriteRule ^gallery/([0-9]+)-([a-zA-Z0-9\-_]*).jpg$ /file/pic/gallery/$1_view.jpg [L]
    RewriteCond %{REQUEST_URI} !^/phpinfo.php
    RewriteCond %{REQUEST_URI} !^/radio.html
    RewriteCond %{REQUEST_URI} !^/LiveSearchSiteAuth.xml
    RewriteCond %{REQUEST_URI} !^/y_key_f8d71cee00449ecf.html
    RewriteCond %{REQUEST_URI} !^/ad80199f014ac85eff7bd27cf650b16a.html
    RewriteCond %{REQUEST_URI} !^/images/.*
    RewriteCond %{REQUEST_URI} !^/banners/.*
    RewriteCond %{REQUEST_URI} !^/googleef3507716994ceba.html
    RewriteCond %{REQUEST_URI} !^/Kleur.swf
    RewriteCond %{REQUEST_URI} !^/morumbasiplayer4.swf.swf
    RewriteCond %{REQUEST_URI} !^/file/.*
    RewriteCond %{REQUEST_URI} !^/xd_receiver.htm
    RewriteCond %{REQUEST_URI} !^/install/.*
    RewriteCond %{REQUEST_URI} !^/design/.*
    RewriteCond %{REQUEST_URI} !^/rpc_relay.html
    RewriteCond %{REQUEST_URI} !^/canvas.html
    RewriteCond %{REQUEST_URI} !^/xd_receiver.htm
    RewriteCond %{REQUEST_URI} !^/login/xd_receiver.htm
    RewriteCond %{REQUEST_URI} !^/finish_auth.php
    RewriteCond %{REQUEST_URI} !^/plugins/.*
    RewriteCond %{REQUEST_URI} !^/index.php
    RewriteCond %{REQUEST_URI} !^/robots.txt
    RewriteCond %{REQUEST_URI} !^/rpc_relay.html
    RewriteCond %{REQUEST_URI} !^/canvas.html
    RewriteCond %{REQUEST_URI} !^/xd_receiver.htm
    RewriteCond %{REQUEST_URI} !^/login/xd_receiver.htm
    RewriteCond %{REQUEST_URI} !^/favicon.ico
    RewriteCond %{REQUEST_URI} !^/forum/.*
    RewriteCond %{REQUEST_URI} !^/prochatrooms/.*
    RewriteCond %{REQUEST_URI} !^/chat/.*
    RewriteCond %{REQUEST_URI} !^/footerbar/.*
    RewriteRule ^(.*)$ /index.php?do=/$1 [L]


    RewriteRule ^gallery/thumb/([0-9]+)-([a-zA-Z0-9\-_]*).jpg$ /file/pic/gallery/thumb/$1.jpg [L]
    RewriteRule ^gallery/large/([0-9]+)-([a-zA-Z0-9\-_]*).jpg$ /file/pic/gallery/$1.jpg [L]
    RewriteRule ^gallery/([0-9]+)-([a-zA-Z0-9\-_]*).jpg$ /file/pic/gallery/$1_view.jpg [L]
    RewriteCond %{REQUEST_URI} !^/phpinfo.php
    RewriteCond %{REQUEST_URI} !^/LiveSearchSiteAuth.xml
    RewriteCond %{REQUEST_URI} !^/install/.*
    RewriteCond %{REQUEST_URI} !^/y_key_f8d71cee00449ecf.html
    RewriteCond %{REQUEST_URI} !^/ad80199f014ac85eff7bd27cf650b16a.html
    RewriteCond %{REQUEST_URI} !^/design/.*
    RewriteCond %{REQUEST_URI} !^/plugins/.*
    RewriteCond %{REQUEST_URI} !^/index.php
    RewriteCond %{REQUEST_URI} !^/radio.html
    RewriteCond %{REQUEST_URI} !^/images/.*
    RewriteCond %{REQUEST_URI} !^/banners/.*
    RewriteCond %{REQUEST_URI} !^/googleef3507716994ceba.html
    RewriteCond %{REQUEST_URI} !^/morumbasi.swf
    RewriteCond %{REQUEST_URI} !^/morumbasiplayer4.swf
    RewriteCond %{REQUEST_URI} !^/file/.*
    RewriteCond %{REQUEST_URI} !^/xd_receiver.htm
    RewriteCond %{REQUEST_URI} !^/robots.txt
    RewriteCond %{REQUEST_URI} !^/favicon.ico
    RewriteCond %{REQUEST_URI} !^/forum/.*
    RewriteCond %{REQUEST_URI} !^/rpc_relay.html
    RewriteCond %{REQUEST_URI} !^/canvas.html
    RewriteCond %{REQUEST_URI} !^/xd_receiver.htm
    RewriteCond %{REQUEST_URI} !^/login/xd_receiver.htm
    RewriteCond %{REQUEST_URI} !^/finish_auth.php
    RewriteCond %{REQUEST_URI} !^/prochatrooms/.*
    RewriteCond %{REQUEST_URI} !^/chat/.*
    RewriteCond %{REQUEST_URI} !^/footerbar/.*
    RewriteRule ^(.*)$ /index.php?do=/$1 [L]

  4. #4
    Junior Member
    Real Name
    D johnson
    Join Date
    Oct 2010
    Posts
    19
    Liked
    0 times
    This is the one in the forums

    # Comment the following line (add '#' at the beginning)
    # to disable mod_rewrite functions.
    # Please note: you still need to disable the hack in
    # the vBSEO control panel to stop url rewrites.
    RewriteEngine On

    #RewriteCond %{HTTP_HOST} !^www\.site\.com
    #RewriteRule (.*) http://www.site.com/forum/$1 [L,R=301]

    redirect 301 http://www.site.com/forum/ http://www.site.com/forum/index.php
    redirect 301 http://www.site.com/forum http://www.site.com/forum/index.php
    redirect 301 http://site.com/forum/ http://www.site.com/forum/index.php
    RewriteCond %{HTTP_HOST} !^www\.site\.com
    RewriteRule (.*) http://www.site.com/$1 [L,R=301]

    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]


    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|vbseo_sitemap/|cron)


    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/


    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|gallery/|useralbums/)
    RewriteRule ^((archive/)?(cgi-bin/php.cgi/)?)$ vbseo.php [L,QSA]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images|user albums)/
    RewriteRule ^(.+)$ vbseo.php [L,QSA]



    #RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]




    #RewriteCond %{REQUEST_URI} !(admincp/|modcp/|vbseo_sitemap/|cron)

  5. #5
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,111
    Liked
    622 times
    Blog Entries
    4
    What happens if you use following .htaccess only ?

    Code:
    # Comment the following line (add '#' at the beginning)
    # to disable mod_rewrite functions.
    # Please note: you still need to disable the hack in
    # the vBSEO control panel to stop url rewrites.
    RewriteEngine On
    
    # Some servers require the Rewritebase directive to be
    # enabled (remove '#' at the beginning to activate)
    # Please note: when enabled, you must include the path
    # to your root vB folder (i.e. RewriteBase /forums/)
    #RewriteBase /
    
    #RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
    #RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]
    
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    
    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap|api\.php)
    RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php [L,QSA]
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  6. #6
    Junior Member
    Real Name
    D johnson
    Join Date
    Oct 2010
    Posts
    19
    Liked
    0 times
    where is the forums or the site root ?

  7. #7
    Junior Member
    Real Name
    D johnson
    Join Date
    Oct 2010
    Posts
    19
    Liked
    0 times
    When I use that as the .htaccess for the forum same thing happens.

  8. #8
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,111
    Liked
    622 times
    Blog Entries
    4
    Please enable RewriteBase on both of your .htaccess files.

    On your root you should use

    RewriteBase /

    on forum

    RewriteBase /forum/
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  9. #9
    Junior Member
    Real Name
    D johnson
    Join Date
    Oct 2010
    Posts
    19
    Liked
    0 times
    That did not help either

  10. #10
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,111
    Liked
    622 times
    Blog Entries
    4
    What happens if you remove following lines from both root and forum .htaccess

    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  11. #11
    Junior Member
    Real Name
    D johnson
    Join Date
    Oct 2010
    Posts
    19
    Liked
    0 times
    same thing how can a simple redirect not work ??

  12. #12
    vBSEO Staff Andrés Durán Hewitt's Avatar
    Real Name
    Andrés Durán
    Join Date
    Jul 2009
    Location
    Costa Rica
    Posts
    3,393
    Liked
    411 times
    Blog Entries
    1
    Hello,

    It looks to me that there's a blank index.html file. Could you please check that as well?.
    Andrés Durán / Crawlability Inc.
    ˇvBSEO 3.6.0 GOLD Liberado!
    Inaugurando el NUEVO vBSEO Sitemap Generator 3.0. - ˇAHORA disponible para Clientes de vBSEO!

    Síguenos en: Facebook | Síguenos en: Twitter


  13. #13
    Junior Member
    Real Name
    D johnson
    Join Date
    Oct 2010
    Posts
    19
    Liked
    0 times
    Thanks that was it no idea how that got there but the date on it was in 2010 - problem solved thanks again

  14. #14
    vBSEO Staff Andrés Durán Hewitt's Avatar
    Real Name
    Andrés Durán
    Join Date
    Jul 2009
    Location
    Costa Rica
    Posts
    3,393
    Liked
    411 times
    Blog Entries
    1
    Excellent!

    We are glad to help.
    Andrés Durán / Crawlability Inc.
    ˇvBSEO 3.6.0 GOLD Liberado!
    Inaugurando el NUEVO vBSEO Sitemap Generator 3.0. - ˇAHORA disponible para Clientes de vBSEO!

    Síguenos en: Facebook | Síguenos en: Twitter


Similar Threads

  1. vBulletin 3.x Weird problem - main page ok - all other pages style/css is messed up
    By dgparent in forum Troubleshooting
    Replies: 2
    Last Post: 10-26-2010, 07:59 PM
  2. URL Rewrite from main page to forums folder problem
    By =Master= in forum Custom Rewrite Rules
    Replies: 0
    Last Post: 09-24-2009, 12:04 PM
  3. Problem rss empty and blank page
    By unikity in forum Troubleshooting
    Replies: 10
    Last Post: 07-22-2009, 06:21 PM
  4. Replies: 14
    Last Post: 04-18-2008, 02:53 PM
  5. Replies: 8
    Last Post: 09-08-2006, 12:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •