WordPress.org

Forums

[Plugin: WordPress Mobile Pack] Different site URL from blog address (9 posts)

  1. poslundc
    Member
    Posted 4 years ago #

    In my General Settings, I have my WordPress Address as http://blog.danposluns.com/wordpress and my Blog Address as http://blog.danposluns.com.

    It seems the result of this is that none of the admin links work correctly on the mobile version of the site, and I am infinitely redirected to the login page as all links point to http://blog.danposluns.com/wp-admin (incorrect) instead of http://blog.danposluns.com/wordpress/wp-admin (correct).

    How can I fix this?

    Thanks,

    Dan.

  2. AndreaTrasatti
    Member
    Posted 4 years ago #

    Hi,
    I just visited your blog and when I try to visit /wordpress I get a "page not found" error.

    Why do you have that setting? Why aren't both addresses to the homepage?

  3. poslundc
    Member
    Posted 4 years ago #

    I didn't want WordPress installed in the root directory of my website. I followed the instructions here: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

    As I understand it, URL links are meant to be constructed using form_option('siteurl') as the prefix instead of hard-coding it, in order to ensure they are pointing to the correct directory. I tried having a look at the WordPress Mobile Pack code to see if I could fix this myself, but it was a bit too overwhelming for me.

    Dan.

  4. poslundc
    Member
    Posted 4 years ago #

    Anyone?

  5. poslundc
    Member
    Posted 4 years ago #

    Bump... this is still broken in the most recent release.

  6. Niklaus S.
    Member
    Posted 4 years ago #

    The image encoder is affected as well.
    To fix the image encoder, replace "get_option('home')" with "get_option('siteurl')" in wpmp_transcoder.php

  7. Gilligan
    Member
    Posted 4 years ago #

    @poslundc, quick fix for your admin pages:
    mobile_admin.php
    line 35
    change to
    header("Location: $base/wp-login.php?redirect_to=" . urlencode($base) . "%2Fwordpress" . "%2Fwp-admin%2F");

    line 185
    change to
    "<strong><a href='$base/wordpress/wp-admin/post.php?action=edit&post=$post->ID'>" . get_the_title() . "</a></strong>" .

    mobile.php
    line70
    change to
    $base = get_option('siteurl');

  8. Gilligan
    Member
    Posted 4 years ago #

    ...I'm still tracking down all the spots in mobile_admin where changes need to be made... testing these on the fly... stay tuned... developers may fix this before we do...

  9. Gilligan
    Member
    Posted 4 years ago #

    line 271
    line 325
    line 432
    add wordpress there too

    These fixes only apply if you have your install in /wordpress/ subfolder!!!

Topic Closed

This topic has been closed to new replies.

About this Topic