Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default installation seems to have trouble working with php -S #102

Closed
quinn opened this issue Sep 21, 2019 · 2 comments
Closed

Default installation seems to have trouble working with php -S #102

quinn opened this issue Sep 21, 2019 · 2 comments

Comments

@quinn
Copy link

quinn commented Sep 21, 2019

I am using the default installation, and am experiencing some issues. First, i had to add:

remove_filter('template_redirect','redirect_canonical');

to:

/wp/wp-content/themes/twentynineteen/functions.php

Without that, when i would go to, e.g. localhost:4000, it would redirect to remove the port. With that disabled, it would stop the redirect, but some of the theme assets return a 404 because they, have an extra prefix, e.g:

<link rel='stylesheet' id='twentynineteen-style-css'  href='/wp/wp/wp-content/themes/twentynineteen/style.css?ver=1.4' type='text/css' media='all' />

Are these common issues / how can I fix? I've tried a lot of fixes from google having to do with HOME and SITEURL, but nothing has seemed to help.

@lkraav
Copy link
Contributor

lkraav commented Sep 23, 2019

@quinn what is your WP_HOME setting value?

You might be dealing with the same thing as #101

@gmazzap
Copy link
Member

gmazzap commented Nov 25, 2021

Please check if 4c76d9d solved it. Thanks.

@quinn quinn closed this as completed Nov 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants