Results 1 to 8 of 8

I am stuck!

This is a discussion on I am stuck! within the Troubleshooting forums, part of the vBSEO SEO Plugin category; hi there, I have my forums in domain root. I'm using vba cmps too. I am facing a problem where ...

  1. #1
    Senior Member webwizzy's Avatar
    Real Name
    Vinayak
    Join Date
    Aug 2008
    Location
    India
    Posts
    257
    Liked
    0 times

    I am stuck!

    hi there,

    I have my forums in domain root. I'm using vba cmps too.

    I am facing a problem where entering domain root in browser goes to index.php i.e. forums index page. I want it to go to portal.php instead (cmps page). This problem started happening just now after installing vbseo.

    1. I have DirectoryIndex portal.php in .htaccess
    2. I disabled Force Forum Root as Homepage?
    3. I have my Homepage URL set to portal.php

    STILL its going to forum index rather than portal.php

    You can check my URL in sig for the problem

    Thanks

  2. #2
    Senior Member webwizzy's Avatar
    Real Name
    Vinayak
    Join Date
    Aug 2008
    Location
    India
    Posts
    257
    Liked
    0 times
    I have created a CRR for index.php -> forum/

    Now "forum/" and "/" both point to index.php

    Can't understand why index.php is forced to act as homepage.

  3. #3
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Hello,

    what is your full .htaccess file content?
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  4. #4
    Junior Member
    Real Name
    rant boss
    Join Date
    Mar 2008
    Posts
    10
    Liked
    0 times
    I think you will need to rename portal.php to index.php so root opens your portal homepage.

    Then rename your vBUlletin index.php to say forum.php and doo the appropriate change in vBulletin Options > Forums Home Page Options. Change from index to forum

  5. #5
    Senior Member webwizzy's Avatar
    Real Name
    Vinayak
    Join Date
    Aug 2008
    Location
    India
    Posts
    257
    Liked
    0 times
    Quote Originally Posted by Oleg Ignatiuk View Post
    Hello,

    what is your full .htaccess file content?
    hi oleg,

    my .htaccess:-

    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)
    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]
    As you can see there's nothing new in it except the first few lines which are necessary. I have exactly the same .htaccess on my second site which runs fine.


    Quote Originally Posted by rant boss View Post
    I think you will need to rename portal.php to index.php so root opens your portal homepage.

    Then rename your vBUlletin index.php to say forum.php and doo the appropriate change in vBulletin Options > Forums Home Page Options. Change from index to forum
    But i don't think renaming is necessary. I have exactly the same setup on my tech site, but i don't face any problems there. The only difference is that it is in forums/, but that should not be a problem i think.
    Last edited by webwizzy; 11-17-2008 at 09:31 AM.

  6. #6
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Try to replace this line:
    Code:
    RewriteRule ^((archive/)?(.*\.php(/.*)?)?)$ vbseo.php [L,QSA]
    with:
    Code:
    RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]
    Also, you don't have "DirectoryIndex portal.php" in it?
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  7. #7
    Senior Member webwizzy's Avatar
    Real Name
    Vinayak
    Join Date
    Aug 2008
    Location
    India
    Posts
    257
    Liked
    0 times
    NOW.... that was actually amazing of you sir. You always solve problems at once.

    Yes, I did remove Directoryindex as having it or not having it was not making any difference. BUT your replacement line ALONGWITH DirectoryIndex portal.php solved the problem

    Btw sir, can you please tell me:-

    1. I understand DirectoryIndex but what did that replacement do ? I mean how did the htaccess code change solved the problem?

    2. And why it does not happen in my other site where I have exactly the same setup except that the forum is in forums/ and I do not have Directory index in it. Still it works good.

    I just created a CRR for "portal.php" -> "/" and it all looks good now. Can you please browse the site for a minute and tell if things are running fine for you plz. Thank you sir!

  8. #8
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    1. I understand DirectoryIndex but what did that replacement do ? I mean how did the htaccess code change solved the problem?
    With old code vBSEO preprocessed the domain.com/ URL and called index.php file instead of portal.php since it doesn't support custom directoryindex directives.

    I just created a CRR for "portal.php" -> "/" and it all looks good now. Can you please browse the site for a minute and tell if things are running fine for you plz. Thank you sir!
    Yes, that should work too. Your site seems to be running fine for me.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


Similar Threads

  1. Google/Yahoo spider stuck?
    By amnesia623 in forum General Discussion
    Replies: 2
    Last Post: 10-05-2006, 06:56 PM
  2. I'd been wondering why my site was stuck at...
    By curriertech in forum General Discussion
    Replies: 1
    Last Post: 08-19-2006, 01:38 AM
  3. Problem with photopost - I am stuck ... help :(
    By faisj in forum Off-Topic & Chit Chat
    Replies: 3
    Last Post: 06-17-2006, 03:05 PM
  4. Stuck setting up a 301 redirect
    By Pixalo in forum URL Rewrite Settings
    Replies: 3
    Last Post: 06-06-2006, 06:36 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
  •