• My site is at http://www.whiskey-tours-ireland.com/

    I was trying to change the permalinks on the site to something more memorable. But it did not work and I got the following message on all pages except the Home page:

    Not Found
    The requested URL /tours/ was not found on this server.
    Apache/2.2.15 (SUSE) Server at http://www.whiskey-tours-ireland.com Port 80

    I changed the permalinks back to the default which fixed the problem.

    I then tried various other options for the permalinks, all of which failed so I then set it back to the default. This time one of the pages did not revert to the default and no matter what I do I am getting the message above when I visit this one page.

    So two problems.

    In the short term I want to get this page back to the default so it can at least be seen.

    In the longer term I would like to be able to change the permalinks but seem unable to do so.

    Any help would be appreciated

Viewing 10 replies - 1 through 10 (of 10 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    If you’re hosting on a VPS, edit the virtual host config file for your site and add these three lines:

    <Directory /path/to/wordpress>
      AllowOverride All
    </Directory>

    where /path/to/wordpress is the path to the folder that holds wp-config.php

    Then restart Apache.

    Thread Starter magsw

    (@magsw)

    Hi Steve,

    Thank you for the suggestion. What will this do? Fix the problem and return the page ID’s to the default or let me change the permalinks?

    Margaret

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    It will let you change the permalinks. By default, Apache ignores .htaccess; you need to tell it to pay attention.

    This is the number 1 issue for people setting up their own servers. πŸ™‚

    Thread Starter magsw

    (@magsw)

    Hi Steve,

    I cam easily edit the wp-config.php but unfortunately I am on a hosted shared server so restarting Apache is a problem. Editing the wp-config.php broke the site completely so I am assuming that restarting Apache is not optional.

    Does that mean I am stuck?

    Margaret

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    OK, so ignore what I said. It was not for a shared host environment. If you put those links in wp-config.php, it would break the site because that’s not where they belong. Take ’em out.

    Please check with your host’s tech support if .htaccess is being ignored.

    Thread Starter magsw

    (@magsw)

    I think the problem might be that there is no .htaccess file?

    Another problem I am having is that I have to change my password every time I log on to wp-admin. It’s as though WordPress is not remembering my password. I believe that may also have a link to the .htaccess file?

    Margaret

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    If there’s no .htaccess file, that’s a problem!! Contact your host to find out why WP is unable to create one.

    Thread Starter magsw

    (@magsw)

    Where is .htaccess located in the file structure?

    Can I create one?

    What should be in it?

    Sorry but desperate to solve this….

    Margaret

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    You should have a basic .htaccess file

    https://codex.ww.wp.xz.cn/htaccess#Basic_WP

    Make sure that your FTP program (if that’s how you’re looking for it) is set to display hidden files.

    Thread Starter magsw

    (@magsw)

    Hi Steve,

    Created a .htaccess file and loaded it into site. Change to permalinks now working. Bit odd that it was missing in the first place.

    Thank you for your assistance.

    Margaret

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Permalinks’ is closed to new replies.