WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Permalinks - .htaccess problem? (17 posts)

  1. nfiori
    Member
    Posted 3 years ago #

    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?

  2. Tara
    Member
    Posted 3 years ago #

    - 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

  3. nfiori
    Member
    Posted 3 years ago #

    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.

  4. govpatel
    Member
    Posted 3 years ago #

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

    You need to use /%postname%/

  5. nfiori
    Member
    Posted 3 years ago #

    You need to use /%postname%/

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

  6. nfiori
    Member
    Posted 3 years ago #

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

  7. govpatel
    Member
    Posted 3 years ago #

    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.

  8. Emil Uzelac
    Theme Review Admin
    Posted 3 years ago #

    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

  9. nfiori
    Member
    Posted 3 years ago #

    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'.

  10. govpatel
    Member
    Posted 3 years ago #

    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.

  11. nfiori
    Member
    Posted 3 years ago #

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

  12. Tara
    Member
    Posted 3 years ago #

  13. nfiori
    Member
    Posted 3 years ago #

    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?

  14. govpatel
    Member
    Posted 3 years ago #

    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.

  15. nfiori
    Member
    Posted 3 years ago #

    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?

  16. govpatel
    Member
    Posted 3 years ago #

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

  17. nfiori
    Member
    Posted 3 years ago #

    Fortunately I was able to fix it using this 404 re-route method.
    The only problem I have is that the Flash plugin on my homepage stops working. But that's a different post altogether.

    I recommend the tutorial for those using ixwebhosting like me.

Topic Closed

This topic has been closed to new replies.

About this Topic