• Resolved micaryn

    (@micaryn)


    Hi
    Hopefully someone can assist with this.
    Recently installed Ampps to use for development WordPress & other HTML5/CSS3

    After installing WordPress, localhost/ampps gives me normal control panel.
    localhost/domain-name gives WP “Hello World” page.

    localhost/domain-name/wp-login.php gives me the login form.

    On completion of the login form & clicking “login” page defaults to domain-name/wp-login.php (ie localhost prefix is dropped) which results in a 404 error and means I can’t access the WP admin panel…

    Further if I click any of the links on the WP “Hello World” page the localhost prefix is again dropped resulting in 404 not found whereas if I actually type the address in the form:- localhost/domain-name/link-address I get to the correct page…

    Using latest version (3.6) of Ampps & installing WordPress via Softaculous on Windows 10,

    Would really appreciate assistance on this…

    PS Although I’m pretty clued up about WordPress my knowledge of running a localhost could be classed as dangerous..

Viewing 2 replies - 1 through 2 (of 2 total)
  • You can try to set the Site URL manually. Open the wp-config.php file and add:

    
    define('WP_HOME','https://localhost/domain-name');
    define('WP_SITEURL','https://localhost/domain-name');
    Thread Starter micaryn

    (@micaryn)

    @rosehosting:-

    Thank you for the suggestion, I ultimately found I had to edit the Windows Hosts file

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘After login get 404 using WP on Ampps Localhost’ is closed to new replies.