Viewing 7 replies - 1 through 7 (of 7 total)
  • whooami

    (@whooami)

    you either need to edit your wp-config.php and change the prefix.. By default, it is defined as wp_ OR you need to delete the tables that were installed into mysql when you installed previously.

    changing the prefix will NOT delete any tables, it will just force WP to create new tables, with a new prefix.

    Thread Starter bjartmar

    (@bjartmar)

    That is the solution for why I can’t remove the blog entirely? And how I can reinstall.

    What I was really asking about is how I can fix the broken links.

    For example is the link to show comment:
    – Link as it is now:
    http://www.mydomain.com/blog/?p=1#comments

    – Link as it should be:
    http://www.mydomain.com/blog/index.php?p=1#comments

    whooami

    (@whooami)

    you need to edit the home and site urls, if you just want to adjust the urls. its done in your databse, OR you can edit wp-config.php and hardcode them in there.

    If you dont have content, its JUST as easy to edit ONE line in your wp-config to use another prefix and reinstall.

    Thread Starter bjartmar

    (@bjartmar)

    I removed all of wp’s content/tables in mysql. Tried to reinstall and the links are still not pointing to /blog/index.php – Just to /blog/

    Even when I’m loggin in as admin as the first time it directs me to /blog/wp-admin/ instead of /blog/wp-admin/index.php
    I can’t imagine what I’m doing wrong. It must have something to do with the wp-config.php

    whooami

    (@whooami)

    what is the problem with being pointed to wp-admin/ (without the index.php)??

    If you are seeing a directory listing instead of a page at that url, then you fix that by adding index.php as a default index page inside your .htaccess, not by changing anything inside of WordPress.

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Add this to the top of the .htaccess file in the blog directory:
    DirectoryIndex index.php

    Thread Starter bjartmar

    (@bjartmar)

    I did try that before. But it didn’t work.
    Now I checked the .htaccess in the root and removed few lines. It made the blog/ not work.

    It works now. Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Links are bad…’ is closed to new replies.