lando / wordpress

The Official WordPress Lando Plugin
https://docs.lando.dev/wordpress/
GNU General Public License v3.0
14 stars 7 forks source link

Visiting wp-admin returns URL not found #33

Closed andersacorn closed 1 year ago

andersacorn commented 1 year ago

I saw a similar issue, but it was closed a year ago.

I have a very simple .lando.yml file

name: bc-sc
recipe: wordpress
config:
  webroot: wordpress

Wordpress home page works on all these urls

https://localhost:49584                        
http://localhost:49585                         
http://bc-sc.lndo.site/                        
https://bc-sc.lndo.site/

However when I visit http://bc-sc.lndo.site/wp-admin or /wp-login with .php added and without I just get a url not found.

Any help would be greatly appreciated.

Kindly,

Anders

texeltexel2009 commented 1 year ago

Please provide more information so the rest of us can lend you a hand. What OS and Lando versions are you using?

andersacorn commented 1 year ago

lando Version v3.6.4

Apple m1 mac mini

andersacorn commented 1 year ago

I had to run the the quick start one more time, and start from the beginning but it is working now

# Create folder and enter it
mkdir wordpress && cd wordpress

# Initialize a wordpress recipe using the latest WordPress version
lando init \
  --source remote \
  --remote-url https://wordpress.org/latest.tar.gz \
  --recipe wordpress \
  --webroot wordpress \
  --name my-first-wordpress-app

# Start it up
lando start

# List information about this app
lando info

# Create a WordPress config file
lando wp config create \
  --dbname=wordpress \
  --dbuser=wordpress \
  --dbpass=wordpress \
  --dbhost=database \
  --path=wordpress

# Install WordPress
lando wp core install \
  --url=https://my-first-wordpress-app.lndo.site/ \
  --title="My First Wordpress App" \
  --admin_user=admin \
  --admin_password=password \
  --admin_email=admin@my-first-wordpress-app.lndo.site \
  --path=wordpress