• Resolved sdancer75

    (@sdancer75)


    Ok,

    The problem is a little bit complicated, but here how it is the situation. I will try to be very analytic.

    I have a web hosting packages that run Joomla with the domain name mywebsite.com. Under a subfolder “wordpress” (httpdocs / wordpress) I wanted to run a WordPress blog. I wanted also, to use an extra domain name for my blog ie MyBlog.com that is an alias to the main (MyWebSite.com) and goes directly to that subfolder. I wanted also the blog’s domain name suppressing the subfolder from the url string.

    For example :

    MyWebSite.com –> Original Joomla Web site
    MyWebSite.com/wordpress –> WordPress Blog
    MyBlog.com = MyWebSite.com –> Original Joomal Web site
    MyBlog.com/wordpress = MyWebSite.com/wordpress –> WordPressBlog

    Using .htaccess, I successfully re-written the URL string to achive the result below :

    MyBlog.com –> Blog (goes directly to Blog without the subfolder in the url string)

    It works perfectly.

    I changed also the wp-config.php to include the lines below

    define(‘WP_HOME’,’MyBlog.com’);
    define(‘WP_SITEURL’,’MyBlog.com’);

    The problem occured, is with the login page, which returns an error that says that login credentials are ok but I must enable the cookies in my browser. Of course cookies are enabled by default.

    Tried the trick disabling the ‘testcookie‘ check in the login page but is not workings since backoffice need cookies. That means that WordPress engine fails to store and read the cookies because I suspect I have permission problems.

    Using the main domain name full url MyWebSite.com/wordpress/wp-login.php or even the alias domain name full url (disabling the trick in the .htaccess file) MyBlog.com/wordpress/wp-login.php works fine.

    Can someone suggest me to override the problem ? I dont care if I use hard code changes since I need that blog only for test purposes.

    Regards,

Viewing 1 replies (of 1 total)
  • Thread Starter sdancer75

    (@sdancer75)

    SOLVED :

    I just added the following code to the file wp-config.php

    define(‘ADMIN_COOKIE_PATH’, ‘/’);
    define(‘COOKIE_DOMAIN’, ”);
    define(‘COOKIEPATH’, ”);
    define(‘SITECOOKIEPATH’, ”);

Viewing 1 replies (of 1 total)
  • The topic ‘Domain Name Alias and Login is failed to Cookies related problem’ is closed to new replies.