Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)
  • Slim,

    sorry I wasn’t keeping up on these threads.

    My problem was with a totally new wp install. The install went fine, but then i had the problem similar to what you’re experiencing.

    The blog is on a sub-directory but I needed the blog url to read http://www.new_url.com

    In cPanel first I did a ‘addon domain’ on the root URL so ‘new_url.com’ is directed to /public_html/new_url so both URLs arepointing to the same IP address.

    At this point I tried a couple things ~ In cPanel/addon domain you can do a redirect there, which i did but it didn’t help, so i also did a 301 redirect in cPanel/redirects.

    Well after I did that I could log-in to admin but it scrwed up the url so that I couldn’t just go to the ‘new_url.com’ with a browser.

    So then I cleared out both of those redirects and did the redirect within wp like i explained above and everything out on the front end and log-in access worked. I’ve got 20 some blogs to get up an I’ve done this to the first 5 without any problems.

    Q: You edited the ‘default’ themes function.php file, do edit the function.php file of the theme I’m using?

    Actually I’m using several divfferent themes but i added the code to the default theme.

    You might want to try what MichaelH(moderator) talked about above if my fix doesn’t do it.

    I hope this clarifies this procedure.

    If you have any more questions, I’ll check back.

    MichaelH Ya, you could be right. Niteblade, Actually I came across this fix from a link to the Doc area in another post string that about redirecting the sub-directory your wp blog is on so it shows as its own domain. I tried to retrace my steps back there but I couldn’t find that post or the information from Documents.

    I’m glad this helped you retta.

    Cheers

    I finally got a fix on my problem which seems to be the same or similar as what you’re experiencing.

    Mine was a new install into a sub-directory and then I couldn’t log-in the same as everybody.

    What i did, I got the new URL pointed at the right sub-directory without any redirects in place.

    Then I went into cPanel/file manager (or you can do this editing with ftp) to the functions.php file located here wp-content/themes/default/functions.php

    Then Edit this file at the very top of the functions.php file on the next line after the <?php
    add these two pieces of code:

    update_option(‘siteurl’,’http://your-new-domain.com/&#8217;);
    update_option(‘home’,’http://your-new-domain.com/&#8217;);

    Then go and log-in to the blog admin a couple times.
    like at the new address: /wp-login.php

    Then go and remove the two pieces of code listed above from the functions.php file .

    This was just for a new wp-install but I’ve done this on a couple that i was having the same trouble as above and that fixed it.

    Cheers

    I finally got a fix on my problem.

    Mine was a new install into a sub-directory and then I couldn’t log-in the same as everybody above.

    What i did, I got the new URL pointed at the right sub-directory without any redirects in place.

    Then I went into cPanel/file manager to the functions.php file located at here wp-content/themes/default/functions.php

    Then Edit this file at the very top of the functions.php file on the next line after the <?php
    add these two pieces of code:

    update_option(‘siteurl’,’http://your-new-domain.com/&#8217;);
    update_option(‘home’,’http://your-new-domain.com/&#8217;);

    Then go and log-in to the blog admin a couple times.
    like at the new address: /wp-login.php

    Then go and remove the two pieces of code listed above from the functions.php file .

    This was just for a new wp-install but I’ve done this on a couple that i was having the same trouble as above and that fixed it.

    Cheers

    Thread Starter digg50

    (@digg50)

    I finally got a fix on my problem.

    Mine was a new install into a sub-directory and then I couldn’t log-in the same as everybody above.

    What I did, I got the new URL pointed at the right sub-directory without any redirects in place.

    Then I went into cPanel/file manager to the functions.php file located at here wp-content/themes/default/functions.php

    Then Edit this file at the very top of the functions.php file on the next line after the <?php
    add these two pieces of code:

    update_option(‘siteurl’,’http://your-new-domain.com/&#8217;);
    update_option(‘home’,’http://your-new-domain.com/&#8217;);

    Then go and log-in to the blog admin a couple times.
    like at the new address: /wp-login.php

    Then go and remove the two pieces of code listed above from the functions.php file .

    This was just for a new wp-install but I’ve done this on a couple that i was having the same trouble as above and that fixed it.

    Cheers

    I finally got a fix on my problem.

    Mine was a new install into a sub-directory and then I couldn’t log-in the same as everybody above.

    What i did, I got the new URL pointed at the right sub-directory without any redirects in place.

    Then I went into cPanel/file manager to the functions.php file located at here wp-content/themes/default/functions.php

    Then Edit this file at the very top of the functions.php file on the next line after the <?php
    add these two pieces of code:

    update_option(‘siteurl’,’http://your-new-domain.com/&#8217;);
    update_option(‘home’,’http://your-new-domain.com/&#8217;);

    Then go and log-in to the blog admin a couple times.
    like at the new address: /wp-login.php

    Then go and remove the two pieces of code listed above from the functions.php file .

    This was just for a new wp-install but I’ve done this on a couple that i was having the same trouble as above and that fixed it.

    Cheers

    I’m also having this problem with several 2.7 mew installs and PHP 5.2.6

    this is a couple other strings with this same/similar problem

    http://wordpress.org/support/topic/226628
    http://wordpress.org/support/topic/226559

    Niteblade,

    I tried what you’re doing, In /wp-admin/admin.php I put;

    if ( defined(‘ABSPATH’) )
    require_once(ABSPATH . ‘wp-load.php’);
    else
    require_once(‘../wp-load.php’);

    if ( get_option(‘db_version’) != $wp_db_version ) {
    wp_redirect(admin_url(‘upgrade.php?_wp_http_referer=’ . urlencode(stripslashes($_SERVER[‘REQUEST_URI’]))));
    exit;
    }

    before the call to /wp-admin/includes/admin.php

    but it didn’t do it.

    Is it working for you after doing that?

    Thread Starter digg50

    (@digg50)

    MichaelH,

    Yes that is one of the domains in question.

    Please let me know if my configuration is correct here;

    I have that domain 1ipod-shuffle.com pointing to the http://www.topanxiety-disorders.com/1ipod-shuffle/ directory
    then I also have a 301 redirect with the Redirect with or without www. selected.
    Then in the redirects to tab I put http://www.2-4iphone.com

    So that’s how that one is configured

    Let me know if there’s another/better way to do that.

    Thanks

    Nightblade – Digg50 here – I’ve been following your posts around because you seem to be onto an answer, but I tried changing that code you have there at the top of /admin.php but I didn’t see any change as yet.

    You have this string;
    require_once(ABSPATH . ‘wp-admin/includes/admin.php’);
    but where did you put it?

    Niteblade – Digg50 here I tried adding echo ABSPATH I think as you suggested, like this:

    In WordPress Administration Panels
    *
    * @since unknown
    */
    define(‘WP_ADMIN’, TRUE);

    if ( defined(‘ABSPATH’) )
    require_once(ABSPATH . ‘wp-load.php’);
    else
    require_once(‘../wp-load.php’);

    if ( get_option(‘db_version’) != $wp_db_version ) {
    wp_redirect(admin_url(‘upgrade.php?_wp_http_referer=’ . urlencode(stripslashes($_SERVER[‘REQUEST_URI’]))));
    exit;
    }
    echo ABSPATH;
    require_once(ABSPATH . ‘wp-admin/includes/admin.php’);

    auth_redirect();

    But it didn’t do it.
    Did i get this in the right spot? Of course another noncoder here 🙁

    I also cleared out my cookies but no avail.

    guioconner – Digg50 here with the same problem . I tried clearing the cookies but that didn’t help. these are new installs a couple i was able to get in after doing a 301 redirect, but this latest one I’ve tried a couple redirects where i can get in but then the browser won’t bring up the blog index.

    view mine at http://wordpress.org/support/topic/226559

    good luck

    Thread Starter digg50

    (@digg50)

    Hey sim2008 – at least I’m not alone here. No remedy yet here.

    Niteblade – it is PHP 5.2.6

    I’ve got 5 of these I’m trying to get into. Actually I have got into a couple of them – these are all on a subdirectory and where it did work is when I went back and did a 301 permanent redirect. But that hasn’t worked on all of them for some reason.

    Thread Starter digg50

    (@digg50)

    MichaelH,

    I appreciate your reply but I followed your advice and checked the home values but they were correct without the trailing slash in the database.

    Now when I paste the url into the browser for that blog the home page comes up with a trailing slash…

    Any other checks?

Viewing 14 replies - 1 through 14 (of 14 total)