• Resolved sickdelusion

    (@sickdelusion)


    Hello everybody,

    like posted here (which was wrong, sorry, so I started this topic) http://wordpress.org/support/topic/permanent-redirect-files-at-subdomaindomain1com-blog-at-domain2com?replies=7 … I’m having some issues with my website/domain right now and I am looking for help.

    First I had a website on http://sickdelusion.de/layonyayo which I wanted to give it’s own main domain.
    So I made layonyayo.com to the directory /layonyayo and then, after visiting layonyayo.com still ended up on sickdelusion.de/layonyayo in the browser adress field, I added a .htaccess to the root directory, containing the following:
    Redirect permanent /layonyayo http://layonyayo.com

    Everything seemed to work perfectly, until I wanted to login into the dashboard. So I went to layonyayo.com/wp-login.php and wanted to login, but I’m getting an infinite loop, where I fill in username and password, check remember me and try to login, but I’m not getting logged in, but redirected to the same page with empty fields.
    Plus the password isn’t asked to be safed by the browser and every field is empty again, when I’m redirected by this loop. If you know what I mean. It’s infinite and I don’t know what to do, that’s why I’m asking you 🙂

    What do I need to do in order to be able to login into my dashboard again AND keeping layonyayo.com in the browser adress field at all times while browsing this website?

    FYI, I tried different browsers before and after clearing cache & cookies.
    I also tried to disable all installed plugins via moving them from /wp-plugins to /wp-plugins/disabled, but that didn’t help either, so I moved them back to /wp-plugins.

    Thanks in advance for any kind of help!

    Edit: I reviewed http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory but this is not what I need, for sickdelusion.de is my root domain and layonyayo.com is for root/layonyayo.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Try reviewing Moving_WordPress.

    Thread Starter sickdelusion

    (@sickdelusion)

    Hi and thank you, but to be honest I’m absolutely not sure which of these solutions, which are named there, is the right one for me. Could you please tell me which part is the one which might help me with my problem? Thank you. 🙂

    You need the 14 steps under “On Your Existing Server”.

    Thread Starter sickdelusion

    (@sickdelusion)

    Sorry, the second step tells me to log in into my blog, but that’s exactly what’s impossible right now because of the problem mentioned above…

    Plus… I guess I don’t need to move any files, because they are all right there where they belong imho, thus in /layonyayo where layonyayo.com is supposed to lead to, so why should I do what is written there in the 14 steps, besides the fact that I can’t log in? I’m sorry, I’m confused, but this doesn’t look to a solution for my problem to me. Although I’m no “pro” 😉 If it is the solution, please help and explain, so I can understand.

    Thread Starter sickdelusion

    (@sickdelusion)

    Should I just have changed the site URI and/or adress from http://sickdelusion.de/layonyayo to http://layonyayo.com inside the dashboard without using the .htaccess?

    Which was I tried first, fyi, I mean changing the second field (URI?) from http://sickdelusion.de/layonyayo to http://layonyayo.com, but that gave me an error message, so I changed it back and tried the .htaccess.

    Thread Starter sickdelusion

    (@sickdelusion)

    I also tried to change the content of the .htaccess from
    Redirect permanent /layonyayo http://layonyayo.com
    to

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^(www.)?layonyayo.com$
    RewriteRule ^(/)?$ layonyayo [L]

    … but that didn’t help, either. Though I’m guessing that would’nt have made any sense at all, would’ve it? Don’t know.

    When I delete the .htaccess from root, which I did now, I can log in again, but then the URL changes from layonyayo.com to sickdelusion.de/layonyayo when I’m clicking on a menu link from the website and this is exactly what I don’t want.
    I want to stay it as layonyayo.com at all times, how can I achieve that while being able to log in into the dashboard?

    Please, there has to be a way to achieve that, no? Without moving any files, because they’re all where they’re supposed to be and so on. 🙂 Does anyone know any help, pretty please? :3

    Thread Starter sickdelusion

    (@sickdelusion)

    Well… by trying out more stuff, I found the solution.

    I added the lines

    define('WP_HOME','http://layonyayo.com');
    define('WP_SITEURL','http://layonyayo.com');

    to my wp-config.php from /layonyayo and that worked. 🙂 Thanks anyways.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Permanent Redirect .htaccess – infinite wp-login.php loop’ is closed to new replies.