Forums

moved directory for install.. now can't login (4 posts)

  1. pinfoto
    Member
    Posted 4 months ago #

    I recently had a trojan injected in my java script wordpress installation. Part of combating this was deleting the old install and doing a restore from backup.

    I also decided to move my directory. I used to have my site set to: http://www.example.com/blog/. I now have simply directed this to http://www.example.com.

    I can see my site and links work fine, but the admin login redirects to the /blog/ directory and can't find the /blog/wp-admin folder there, naturally ,its located at /wp-admin.

    I tried inserting the following code in the wp-config.php in the site root, but it did not solve the problem.

    define('WP_HOME','http://www.woessners.org');
    define('WP_SITEURL','http://www.woessners.org');

    Can someone provide a solution? Thanks!

  2. govpatel
    Member
    Posted 4 months ago #

    If you want to use wordpress from directory blog follow instructions here

    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

  3. pinfoto
    Member
    Posted 4 months ago #

    I want to keep the new directory listing set to my root. I need to tell the wp-login.php page not to redirect back to /blog/ since my site no longer has the /blog/ directory. Is there a way to manually set these?

    Should I re-create the /blog/ directory and then try to change from there? I did not see an .htaccess file in my root, so copied one from another blog installation. It simply reads:

    # Use PHP5 Single php.ini as default
    AddHandler application/x-httpd-php5s .php
  4. govpatel
    Member
    Posted 4 months ago #

    If you want to use wordpress from root that is your domain name then you need to have all files and folders in root and change the urls to your domain name in Settings>>>>General

    http://codex.wordpress.org/Moving_WordPress

Reply

You must log in to post.

About this Topic