Support » Fixing WordPress » Permalinks – .htaccess problem?

  • Resolved nfiori

    (@nfiori)


    Although it’s not recommended, I tried to set my permalinks to %postname%. The problem is that when I try to load one of my pages, it sends me to a 404.

    I read in the WordPress Codex that you need to allow your database to rewrite .htaccess. I’m not exactly sure how to do this? Is this even the problem?

Viewing 15 replies - 1 through 15 (of 16 total)
  • Moderator t-p

    (@t-p)

    – WordPress either creates/amends the .htaccess file for you (provided you have assigned appropriate permission).

    -or WordPress provides you with the correct block of code to manually add to your .htaccess file.

    Documentation: http://codex.wordpress.org/Using_Permalinks

    I know, I read through it already, but it doesn’t help much because I have no idea what I’m doing. I just copy/pasted a bunch of lines of code into .htaccess and it still doesn’t work.

    Although it’s not recommended, I tried to set my permalinks to %postname%.

    You need to use /%postname%/

    You need to use /%postname%/

    I did. And even if I hadn’t, WordPress automatically adds the forward slash.

    I also tried searching past support topics. It looks like this issue hasn’t been solved at all. That’s unnerving.

    What permission do you have on your .htaccess file as it should be 755 if that does not work then change to 777 until you get it working and then change it back to 755

    The only other thing I can think of is check with your host if they have Mod_rewrite On.

    Emil Uzelac

    (@emiluzelac)

    Theme Review Admin

    Why is %postname% not recommended? I actually use only that at all times to any of the sites that I run.

    Forward slash in example.com/postname/ is normal thing, nothing unusual.

    This is not an issue with WordPress, you just need to talk with your hosting provider and ask them why your .htaccess is not functioning properly, that’s all 🙂

    Emil

    What permission do you have on your .htaccess file…

    I’m not sure. How would I change that?

    Why is %postname% not recommended? I actually use only that at all times to any of the sites that I run.

    Yeah, I use it all the time too. It’s weird that it’s not working now.
    It’s not recommended because of the fact that post titles can become very long, so their URLs would be awkward and often break.
    In my case, I’m not running a blog. I’m using WP more as a CMS than anything, and running an eCommerce site from it, so the URLs will be confined to such terms as ‘home’ and ‘about’.

    I have my my .htaccess permission set to 755 but it all depends on how the server is set up.

    I have been using my permalinks with /%postname%/ and do not have any problem.

    If your theme supports custom theme then all though your page title is long for the page you can change what you want to show in menu from custom menu.

    How do I set the permissions on my .htaccess file?

    Moderator t-p

    (@t-p)

    Ok I used the FTP method and it gives me this error

    Status: Set permissions of ‘/sonelle/.htaccess’ to ‘755’
    Command: SITE CHMOD 755 .htaccess
    Response: 500 ‘SITE CHMOD 755 .htaccess’: command not understood

    Is the .htaccess file not rewritable? Could it be because I’m using a Windows server?

    I wish we knew you were using a Window server then we would not have go in this trouble as Its known that window server has problems with permalinks.

    It has problems with a lot of other things too. I recently switched over to my dad’s hosting account, where he runs a Windows server. Trying to get WordPress to install was an issue in itself.

    So is this unfixable? Am I stuck with “ugly” permalinks forever?

    If your host has linux server move it linux server as most host offer both servers.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Permalinks – .htaccess problem?’ is closed to new replies.