Results 1 to 7 of 7

Trouble with redirect ?!?

This is a discussion on Trouble with redirect ?!? within the General Discussion forums, part of the vBSEO Google/Yahoo Sitemap category; Hi! It looks like I am having some trouble with redirect, I can't access my sitemap.xml or sitemap.xml.gz in my ...

  1. #1
    Junior Member
    Real Name
    Jean
    Join Date
    Oct 2008
    Posts
    23
    Liked
    0 times

    Trouble with redirect ?!?

    Hi!

    It looks like I am having some trouble with redirect, I can't access my sitemap.xml or sitemap.xml.gz in my Domain root.

    My forum is located at /members/forum/

    Here is the .htaccess of the / folder:

    Code:
    Header append P3P 'policyref="http://www.domain.com/w3c/p3p.xml", CP="ALL DSP COR CUR ADM IVD OUR PUB IND ONL COM"'
    DirectoryIndex index.php index.html index.htm
    AddType 'text/html; charset=ISO-8859-1' html
    AddType 'text/html; charset=ISO-8859-1' htm
    Options -Indexes
    Options +FollowSymlinks
    
    RewriteEngine on
    
    #Protect Images from HotLinking
    RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain.com(/)?.*$     [NC]
    RewriteRule .*\.(gif|jpg|jpeg|bmp|png|pdf|flv|swf)$ - [F,NC]
    
    #Rewrite subdomains to blogs
    RewriteCond %{HTTP_HOST} ^(.+)\.domain\.com
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteCond %{HTTP_HOST} !^(www\.|ftp\.|mail\.|3ddog\.|affiliate\.|affiliates\.)?domain\.com
    RewriteRule .* http://www.domain.com/members/forum/blogs/%1 [L,R=301]
    
    #Rewrite all subdomains to www
    RewriteCond %{HTTP_HOST} !^(www\.|ftp\.|mail\.|3ddog\.|affiliate\.|affiliates\.)?dogtrickacademy\.com
    RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L] 
    
    #vBSEO Sitemap Generator
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ http://www.domain.com/members/forum/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    
    <Files 403.shtml>
    order allow,deny
    allow from all
    </Files>
    
    deny from 165.127.85.4
    deny from 207.195.244.215
    deny from 82.21.22.54
    deny from 124.177.139.250
    deny from 213.203.218.98
    deny from 213.203.218.
    deny from 66.69.146.
    deny from 82.152.200.70
    deny from 193.124.227.
    deny from 201.160.218.
    deny from 152.216.3.
    deny from 196.220.10.3
    Could anyone help?

    Thanks!

  2. #2
    Senior Member Shadab's Avatar
    Real Name
    Shadab
    Join Date
    Oct 2007
    Location
    Bhopal
    Posts
    821
    Liked
    0 times
    Blog Entries
    12
    How about specifying a relative path in the rewritten URL.
    ie, changing :
    Code:
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ http://www.domain.com/members/forum/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    To:
    Code:
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ members/forum/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    Also, the sitemap index is accessible via sitemap_index.xml.gz
    and not via sitemap.xml or sitemap.xml.gz

  3. #3
    Junior Member
    Real Name
    Jean
    Join Date
    Oct 2008
    Posts
    23
    Liked
    0 times
    Hi Shadab!

    If I use relative path it tries to redirect the page to http://www.domain.com/home/user/public_html/members/forum/.....



    Thanks for the sitemap_index filename. Is this how google checks up on it? I was looking at my google sitemap page and there was a big link to the sitemap.xml file (which did not exist)...

  4. #4
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    What isyour .htaccess file content in forums folder?
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  5. #5
    Junior Member
    Real Name
    Jean
    Join Date
    Oct 2008
    Posts
    23
    Liked
    0 times
    Quote Originally Posted by Oleg Ignatiuk View Post
    What isyour .htaccess file content in forums folder?
    Here is the content of my members/forum/.htaccess file:

    Code:
    RewriteEngine On
    
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    
    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
    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]
    
    RewriteRule ^trickster/([^/\.]+).html$ trickster_$1.php [L]

  6. #6
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Can you provide ftp access via support ticket for troubleshooting?
    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
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Update:
    the issue resovled by changing the rewrite rule to:
    Code:
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ members/forum/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    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. Big trouble
    By Slingblade61 in forum Troubleshooting
    Replies: 3
    Last Post: 02-16-2009, 01:08 AM
  2. Tag rewrite trouble
    By Fabikus in forum URL Rewrite Settings
    Replies: 1
    Last Post: 10-26-2008, 09:15 AM
  3. Replies: 5
    Last Post: 07-06-2008, 06:39 PM
  4. I'm having trouble!
    By Mo Magic in forum General Discussion
    Replies: 2
    Last Post: 04-01-2008, 08:22 PM
  5. Trouble newtread.php
    By Jesusdlg in forum Troubleshooting
    Replies: 8
    Last Post: 05-31-2007, 02:26 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
  •