WordPress.org

Ready to get started?Download WordPress

Forums

WordPress redirecting weirdly (2 posts)

  1. dreamer108
    Member
    Posted 7 months ago #

    So I have this page named "test" on my localhost.

    Every time I try access the page by entering "http://localhost:8888/wordpress/test" it will redirect me to "http://localhost:8888/wordpress/test/" (with a trailing slash) and instead of a page that I designed, it actually gave me a directory listing page.

    I have not mess with any .htcaccess file and I have no idea why it is acting this way, as it is working fine few days before.

    Anyone have any idea where I should try to look into to solve this problem?

    Edit: when I try to change the page name to something else it works just fine, but I have no idea why it will just redirect when i use "test" as the page name.

  2. esmi
    Forum Moderator
    Posted 7 months ago #

    Try adding
    DirectoryIndex index.php index.html index.htm
    to the top of your WordPress .htaccess file.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.