How to Change Your WordPress URL to Remove Subdirectory Name

Поделиться
HTML-код
  • Опубликовано: 23 авг 2024
  • I walk through how I changed my WP URL to no longer include the name of the subdirectory where the WP core files are contained. See the WordPress official guide I followed here: wordpress.org/...

Комментарии • 2

  • @user-cz4ev9by5v
    @user-cz4ev9by5v 6 месяцев назад

    Nice job! Thank you for sharing how you separated your front-end from your CMS. I am building a nextjs ecommerce project and am using wordpress as my CMS (Headless CMS). I have wordpress on localhost:8080 and my front-end on localhost:3000. I had the files setup exactly like you showed in the video but I got a 404. Seeing there are two servers involved I think thats why i'm getting a 404. Still trying to figure it out if you have happened to have done this kind of configuration before I would appreciate knowing how.

    • @omarshishani5899
      @omarshishani5899  6 месяцев назад

      Maybe it's a CORS issue is all I can think of. Check the JavaScript console (Chrome console), and the PHP error logs if you can find them.