Advanced AJAX Page Loader
AAPL not working after moving site to own subdirectory (3 posts)

  1. Hikaruki
    Posted 2 years ago #

    Hi all,

    AAPL was working flawlessly for me, but its just that after I moved my migrated my wordpress installation directory from root to a sub directory( http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory), AAPL no longer works on the menu navigation and it simply just refreshes the browser to load a new page. However links in pages still work with AAPL, because they still manually point to http://www.domain.com/wordpress/?page_id=2 instead of just http://www.domain.com/page. I don't want the installation directory to be shown in the URL thats why I did the steps in the article link above. Any ideas how to fix this?


  2. Dean Williams
    Plugin Author

    Posted 2 years ago #

    Please link me to your site with AAPL enabled so I can do some debug and find out whats happening.

  3. Justin
    Posted 2 years ago #

    I experienced the same problem with this configuration (WordPress installed in a subdirectory, but displayed at the root) and managed to fix it with 2 simple changes:

    In advanced-ajax-page-loader.php,
    1) edit line 28 to have an additional "../" (total of 4) as wp-config.php is now one level further away from the plugin files


    2) edit lines 231 and 232, swap the parameters for get_option(), from

    var AAPLsiteurl = "<?php echo get_option('home');?>";
    var AAPLhome = "<?php echo get_option('siteurl');?>";


    var AAPLsiteurl = "<?php echo get_option('siteurl');?>";
    var AAPLhome = "<?php echo get_option('home');?>";

    I don’t know if they are intentionally mismatched in the first place, but after these 2 changes, everything seems to work fine.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advanced AJAX Page Loader
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.