Results 1 to 15 of 15

I have "Page not found" Error. Help please

This is a discussion on I have "Page not found" Error. Help please within the Troubleshooting forums, part of the vBSEO SEO Plugin category; Hello I have a problem with my VBSEO settings. Okay i think it is easier to show you the problem ...

  1. #1
    Junior Member
    Real Name
    Majd
    Join Date
    Apr 2007
    Posts
    26
    Liked
    0 times

    Unhappy I have "Page not found" Error. Help please

    Hello
    I have a problem with my VBSEO settings.

    Okay i think it is easier to show you the problem than explaining it

    please go to the following link
    http://palissue.com/vb <<< Page Not Found
    However, if you go to this link it works perfectly!

    منتديات انتفاضة فلسطين
    OR
    منتديات انتفاضة فلسطين

    how can i fix this problem?

    thanks

  2. #2
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    Make sure your vbulletin setting is for the desired url (with or without www's...)
    then, see this thread for info on the hatccess

    [How to] Setup www.yourdomain.com or yourdomain.com (www vs. non-www) - With .htaccess 301 redirects

  3. #3
    Junior Member
    Real Name
    Majd
    Join Date
    Apr 2007
    Posts
    26
    Liked
    0 times
    hello
    thanks for your help.

    I am not sure where should i check for the VB settings? sorry i am not sure what have you ment by

    Make sure your vbulletin setting is for the desired url (with or without www's...)


    Also, I have added the 2 lines that are noted in the other thread but the problem still thier!!!

    here is my current .hatccess file


    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 /vb
    ################################## NEW CODE ################
    RewriteCond %{HTTP_HOST} ^www\.palissue\.com$
    RewriteRule ^(.*)$ http://palissue.com/$1 [L,R=301] 
     
     
     
    RewriteCond %{HTTP_HOST} !^www\.palissue\.com
    RewriteRule (.*) http://www.palissue.com/vb/$1 [L,R=301]
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    RewriteCond %{QUERY_STRING} !vbseourl=
    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|chat|cron)
    RewriteRule ^(.*\.php)$ vbseo.php?vbseourl=$1 [L,QSA]
    RewriteCond %{REQUEST_FILENAME} !\.(jpg|gif)$
    RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1 [L,QSA]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php?vbseourl=$1 [L,QSA]
    <IfModule mod_security.c>
    SecFilterEngine Off 
    SecFilterScanPOST Off
    </IfModule>
    RewriteEngine On
    AddDefaultCharset Off
     
    ####Gzip
    <IfModule mod_rewrite.c>
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteRule ^(.*)(js|css|gif|jpg)$ redir.php?file=$1$2&type=$2 [L]
    </IfModule>
    ####ETags
    FileETag None
    ####Expires
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/gif A2592000
    ExpiresByType image/jpeg A2592000
    ExpiresByType image/png A2592000
    ExpiresByType application/x-shockwave-flash A2592000
    ExpiresByType text/css A2592000
    ExpiresByType application/x-javascript A2592000
    </IfModule>

  4. #4
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    /admincp/options.php?do=options&dogroup=address

    make sure the 'forum address' part has NO www's in it that matches your htaccess.
    Code:
    RewriteCond %{HTTP_HOST} ^www\.palissue\.com$
    RewriteRule ^(.*)$ http://palissue.com/$1 [L,R=301]

  5. #5
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    note, that you have two...


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



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



    you need to pick one in your htaccess. www or non www. you should not have both those rules in there

  6. #6
    Junior Member
    Real Name
    Majd
    Join Date
    Apr 2007
    Posts
    26
    Liked
    0 times
    Hello
    Thank much for your help.
    But this thing is still not working!!!

    Okay i want to keep the URL with the WWW

    now here is my current setting


    in the admincp the url has www.


    and here is my curent .htaccess file

    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 /vb
    ################################## NEW CODE ################
    RewriteCond %{HTTP_HOST} !^www\.palissue\.com
    RewriteRule (.*) http://www.palissue.com/$1 [R=301,L] 
     
     
     
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    RewriteCond %{QUERY_STRING} !vbseourl=
    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|chat|cron)
    RewriteRule ^(.*\.php)$ vbseo.php?vbseourl=$1 [L,QSA]
    RewriteCond %{REQUEST_FILENAME} !\.(jpg|gif)$
    RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1 [L,QSA]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php?vbseourl=$1 [L,QSA]
    <IfModule mod_security.c>
    SecFilterEngine Off 
    SecFilterScanPOST Off
    </IfModule>
    RewriteEngine On
    AddDefaultCharset Off
     
    ####Gzip
    <IfModule mod_rewrite.c>
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteRule ^(.*)(js|css|gif|jpg)$ redir.php?file=$1$2&type=$2 [L]
    </IfModule>
    ####ETags
    FileETag None
    ####Expires
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/gif A2592000
    ExpiresByType image/jpeg A2592000
    ExpiresByType image/png A2592000
    ExpiresByType application/x-shockwave-flash A2592000
    ExpiresByType text/css A2592000
    ExpiresByType application/x-javascript A2592000
    </IfModule>
     
    
    And still not working

  7. #7
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    K, i'm showing

    Code:
    The requested URL //home/abukefa7/public_html/vb was not found on this server.
    on the error page.

    The DOUBLE slash at the front is wrong. it should be a single slash.

    Update your config_vbseo.php (near the bottom) file with

    find:
    Code:
    define('VBSEO_CUSTOM_DOCROOT',         '');
    replace with

    Code:
    define('VBSEO_CUSTOM_DOCROOT',         '/home/abukefa7/public_html/vb/');

  8. #8
    Junior Member
    Real Name
    Majd
    Join Date
    Apr 2007
    Posts
    26
    Liked
    0 times
    Hello

    This still not working!! I am not sure what to do I have updated the file you told me to but it is not working

    In fact, here is my current .htaccess code

    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 /vb
    ################################## NEW CODE ################
    RewriteCond %{HTTP_HOST} !^www\.palissue\.com
    RewriteRule (.*) http://www.palissue.com/vb$1 [R=301,L] 
     
     
     
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    RewriteCond %{QUERY_STRING} !vbseourl=
    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|chat|cron)
    RewriteRule ^(.*\.php)$ vbseo.php?vbseourl=$1 [L,QSA]
    RewriteCond %{REQUEST_FILENAME} !\.(jpg|gif)$
    RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1 [L,QSA]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php?vbseourl=$1 [L,QSA]
    <IfModule mod_security.c>
    SecFilterEngine Off 
    SecFilterScanPOST Off
    </IfModule>
    RewriteEngine On
    AddDefaultCharset Off
     
    ####Gzip
    <IfModule mod_rewrite.c>
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteRule ^(.*)(js|css|gif|jpg)$ redir.php?file=$1$2&type=$2 [L]
    </IfModule>
    ####ETags
    FileETag None
    ####Expires
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/gif A2592000
    ExpiresByType image/jpeg A2592000
    ExpiresByType image/png A2592000
    ExpiresByType application/x-shockwave-flash A2592000
    ExpiresByType text/css A2592000
    ExpiresByType application/x-javascript A2592000
    </IfModule>

  9. #9
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    You should replace these lines:
    Code:
    RewriteCond %{HTTP_HOST} !^www\.palissue\.com
    RewriteRule (.*) http://www.palissue.com/vb$1 [R=301,L]
    with:
    Code:
    RewriteCond %{HTTP_HOST} !^www\.palissue\.com
    RewriteCond %{THE_REQUEST} vb/
    RewriteRule (.*) http://www.palissue.com/vb/$1 [R=301,L]

  10. #10
    Junior Member
    Real Name
    Majd
    Join Date
    Apr 2007
    Posts
    26
    Liked
    0 times
    thanks now it works


    thank you very much

  11. #11
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Great, you are welcome!

  12. #12
    Junior Member
    Real Name
    Majd
    Join Date
    Apr 2007
    Posts
    26
    Liked
    0 times
    Hello
    you know i have one more problem i just found

    http://www.palissue.com/vb// if you have more than one slash it does not work it gives an error

    is there any solution?

    thanks

  13. #13
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    That is an incorrect URL, where did you find that link?

  14. #14
    Junior Member
    Real Name
    Majd
    Join Date
    Apr 2007
    Posts
    26
    Liked
    0 times
    i did not find it any where but it should work even it has a double slashes. it should ignore the extra slashes added at the ened.


    thanks

  15. #15
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    I wouldn't worry if that link doesn't appear anywhere, but you can try to replace rewrite rule with:
    Code:
    RewriteRule ^/*(.*) http://www.palissue.com/vb/$1 [R=301,L]

Similar Threads

  1. Replies: 380
    Last Post: 05-16-2012, 04:06 PM
  2. Replies: 2
    Last Post: 06-25-2008, 02:10 PM
  3. Replies: 7
    Last Post: 01-14-2008, 03:09 PM
  4. Replies: 1
    Last Post: 06-03-2007, 05:23 AM
  5. "Page not found" Site address being repeated in URLs
    By Tarff in forum Troubleshooting
    Replies: 1
    Last Post: 12-26-2006, 07:37 AM

Posting Permissions

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