• Using Ammps on Ubuntu 18.04
    installed ad-on Domain wordpress.localhost and installed wordpress in wordpress.localhost.
    when entering https://wordpress.localhost/ I get the www root clicking folder wordpress.localhost I get the word press “Oops” page without css loaded.
    in https://wordpress.localhost/wordpress.localhost/ I get “Oops” without css.

    Wordpress was installed via Softaculous

    Thought maybe some files missing…
    downloaded WordPress from org.
    did file count in both same
    thought may be unknown corrupt file overwrote all files except wp-config.php
    no difference
    Stumped as to what to do next!
    Any help much appreciated

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    You need a rewrite rule in .htaccess to get wordpress.localhost domain requests to the wordpress.localhost folder. Without such a rule, all localhost requests go to the public root regardless of the subdomain specified.

    Something like this:

    <ifmodule mod_rewrite.c>
    #	send request for wordpress.localhost to /wordpress.localhost as site root
    	RewriteEngine on
    	RewriteBase /
    	RewriteCond %{REQUEST_URI} !^/wordpress\.localhost/	[NC]
    	RewriteCond %{HTTP_HOST} ^wordpress\.localhost		[NC]
    	RewriteRule (.*) /wordpress.localhost/$1		[R=302,L]
    </ifmodule>

    This is untested and could cause a 500 error if you try to use it. I believe it to be correct, but I cannot verify it. Once you have a proper rewrite in place, I think the other issues will resolve themselves.

Viewing 1 replies (of 1 total)
  • The topic ‘Oops! That page can’t be found’ is closed to new replies.