The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

WordPress directory URLs, htaccess, mod rewrite etc. (2 posts)

  1. cookie720
    Posted 4 years ago #

    HI all, I have a question about URLs, htaccess, mod rewrite etc.

    I have two sites i made recently. Both have all wordpress files in a seperate /wordpress directory. So to get into wp-admin, you need to type in /wordpress/wp-admin, as opposed to just /wp-admin after the url.

    One site however still redirects to the admin login when I type in /wp-admin
    after the home url.

    The other gives me a 404 error, which is ideally what I want.

    Im not sure why the other redirects straight to /wordpress/wp-admin login after typing in just "/wp-admin" after "www.website.com.au"

    I want it to go to an 404 error page like the other website so that people cant just type in wp-admin. (not many people go as far as to type /wordpress/wp-admin)

    I basically created these two sites simultaneously and the behavior is different. I know someone on here will know what this is straight away.

    Thanks in advance! :)

  2. RichardWPG
    Posted 4 years ago #

    - First, try contacting the hosting provider if the database server is online / if they have any other problem at their end, or they made any changes to your account, or if there are any limitations/restrictions, if the hosting package is set to Windows and not Linux, etc .

    - double check your wp-config.php file settings for the database name, database username and database password. This is where most errors occur.

    -Then check that you don't need to change the database host from "localhost" to something else. You can get that info from your hosting provider.

    -Check you have actually created a database with the same database name as is in your wp-config.php file.
    -Last, but not least, if all that information is correct your database probably has a problem with it, and you may need to contact your hosting provider.

Topic Closed

This topic has been closed to new replies.

About this Topic