Results 1 to 11 of 11

Blog URL rewrite: Ajax not working

This is a discussion on Blog URL rewrite: Ajax not working within the Bug Reporting forums, part of the vBSEO SEO Plugin category; Although details hv been posted in ticket (Question Ref: 4043-TSGB-6580 ) I have setup my blog URL in vbseo as ...

  1. #1
    Junior Member
    Real Name
    Anupam Anand
    Join Date
    Sep 2007
    Posts
    28
    Liked
    0 times

    Smile Blog URL rewrite: Ajax not working

    Although details hv been posted in ticket (Question Ref: 4043-TSGB-6580 )

    I have setup my blog URL in vbseo as http://blog.dstreetdirect.com ....
    Also changed all the settings to custom as follows

    Blogs Home
    Custom ----> <leave it blank>

    Blog
    Custom------> [user_name]/

    Blog Pagination
    Custom------>[user_name]/index[page].html

    and so on....

    Now everything is working fine, BUT one big problem is with ajax ....

    Everythng is working fine when we r in root domain of blog like http://blog.dstreetdirect.com/ but as we move to the subdirectory like http://blog.dstreetdirect.com/recent-entries/ ajax stops working and returns "Access is denied" error.

    For Ex: Click on link http://blog.dstreetdirect.com/recent-entries/ and then click on right sidebar "Most Popular" or "Best Blog" link which shows the data instantly without reloading the page, will show access is denied error in IE.

    Second ex., if after logging in as admin whn I click "My Blog" and try to edit my blog post it will show access is denied error in IE.

    Only queries related to ajax calls are not working...

    All my login/ftp details are in the ticked ref : 4043-TSGB-6580 )

  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,100
    Liked
    622 times
    Blog Entries
    4
    Please make sure you have your Cookie Domain set to .domain.com
    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
    Anupam Anand
    Join Date
    Sep 2007
    Posts
    28
    Liked
    0 times
    It is already set to .dstreetdirect.com

  4. #4
    Junior Member
    Real Name
    Anupam Anand
    Join Date
    Sep 2007
    Posts
    28
    Liked
    0 times
    Sir its already too much time, no replies from u guys. plz help.

  5. #5
    Junior Member
    Real Name
    Anupam Anand
    Join Date
    Sep 2007
    Posts
    28
    Liked
    0 times
    Well I searched through through the forums and found this thread Ajax request and subdomain problem with blog as unanswered ... which had an exactly same issue that I have but remain unanswered

    That particular issue was raised 26, August 2009 and still remain unanswered till date.....

    Why don't u guys pull off that feature from your vbseo if u can't handle it anymore like saying Ajax request and subdomain problem with blog

  6. #6
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    At this point in time, we do not have a fix available. There appears to be a cross-subdomain security in place with vb JS files.

    I would suggest moving your blogs back to a subdomain until this feature is fully tested and supported.

  7. #7
    Junior Member
    Real Name
    Anupam Anand
    Join Date
    Sep 2007
    Posts
    28
    Liked
    0 times
    How to move only blogs to a subdomain (if I create a physical subdomain blog.dstreetdirect.com ) ?

  8. #8
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    Update:

    the following modification in functions_vbseo.php file worked:
    find:
    Code:
    $newtext = preg_replace('#<head>#i', "$0\n".'<base href="'.$vboptions['bburl2'].(defined('VBSEO_BASE_URL')?VBSEO_BASE_URL:'').'/" /><!--[if IE]></base><![endif]-->', $newtext, 1);
    replace with:
    Code:
    $durl = $vboptions['bburl2']; if(!strstr($durl, $_SERVER['HTTP_HOST'])) $durl = 'http://'.$_SERVER['HTTP_HOST'];
    $newtext = preg_replace('#<head>#i', "$0\n".'<base href="'.$durl.(defined('VBSEO_BASE_URL')?VBSEO_BASE_URL:'').'/" /><!--[if IE]></base><![endif]-->', $newtext, 1);
    Last edited by Oleg Ignatiuk; 04-26-2010 at 01:08 PM.

  9. #9
    Junior Member
    Real Name
    Anupam Anand
    Join Date
    Sep 2007
    Posts
    28
    Liked
    0 times
    Thanks a ton for that .... Its working now...

    Hope u will include it in the "vbseo 3.5.0 Gold" too ... so tht its no more called a "bug"

    Thanks again...


    small correction: in replacement text "VBSEO_BAS E_URL" should be read as "VBSEO_BASE_URL" ...

  10. #10
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    small correction: in replacement text "VBSEO_BAS E_URL" should be read as "VBSEO_BASE_URL" ...
    Yes, it was reformatted by vBulletin, I've updated my post above.

  11. #11
    Member
    Real Name
    Galerio
    Join Date
    Jan 2011
    Posts
    47
    Liked
    4 times
    I tried the solution above on vBSEO 3.6.0 RC2 but it doesn't work, I got many error and file requests not found.
    This is the NET panel of Firebug:
    1-file-not-found.jpg

    So the modification seems to work because it makes a rewrite of all the needed files! But all are in red because the url gives a "File not found" error.

Similar Threads

  1. Ajax request and subdomain problem with blog
    By Atuttonet in forum Custom Rewrite Rules
    Replies: 4
    Last Post: 04-26-2010, 08:03 AM
  2. VBSEO 3.30: AJAX Features isn't working.
    By psico in forum Bug Reporting
    Replies: 5
    Last Post: 06-17-2009, 03:13 PM
  3. [AJAX] Tabbed Forum Home Or AJAX Tabs Content Script ?
    By f4vn in forum General Discussion
    Replies: 2
    Last Post: 09-19-2008, 03:56 AM
  4. AJAX related features not working?
    By 007 in forum Troubleshooting
    Replies: 4
    Last Post: 03-02-2006, 12:19 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
  •