• Resolved shsh1345

    (@shsh1345)


    Hello

    When I use the regular permalinks the pages load normally but when I switch to pretty permalinks I get error 404. I use go daddy grid hosting, the operating system is Linux and PHP version is 5.x . My wordpress is installed at the root. I’ve tried to change the main htaccess with this

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    Options +FollowSymlinks
    RewriteEngine On
    RewriteBase /news
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /news/index.php [L]
    </IfModule>
    # END WordPress

    and it didn’t help.
    please help…

Viewing 15 replies - 1 through 15 (of 16 total)
  • What is RewriteRule . /news/index.php [L] for?

    Thread Starter shsh1345

    (@shsh1345)

    I don’t know it’s something I saw in the forum.

    Take that out in case it’s causing a problem.

    A suggestion is to let WordPress handle the rewrites. All you have to do is add a .htaccess file (if you don’t already have one) to the root directory and chmod it to 777 (so that WordPress can edit it). After WordPress has made the changes I would chmod it back to it’s original state via an FTP program or SSH (if you have root access).

    Thread Starter shsh1345

    (@shsh1345)

    When I changed the permission to 777 in my ftp and saved it wordpress changed the file to this

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    But I still get error 404

    Moderator James Huff

    (@macmanx)

    Do you know if mod_rewrite is enabled on your server, and what is the permalink structure that you’re trying to set?

    Thread Starter shsh1345

    (@shsh1345)

    I don’t know if mod_rewrite is enabled, how can I check that? The structure I’m trying to set is /%postname%

    Try using one of the preset permalinks first. If they work, then it’s your custom structure that’s at fault.If they don’t work, then mod_rewrite may not be installed and you’ll need to speak to your hosts.

    Thread Starter shsh1345

    (@shsh1345)

    They work only the custom doesn’t work

    Moderator James Huff

    (@macmanx)

    Try this (note the trailing slash at the end):

    /%postname%/

    Thread Starter shsh1345

    (@shsh1345)

    Doesn’t work, strangely the about page works maybe because it was installed with wordpress?

    Moderator James Huff

    (@macmanx)

    Can you share a link to this blog? I’d like to see what’s happening.

    Thread Starter shsh1345

    (@shsh1345)

    Sure the site is https://www.funbuy.co.il/ the pages that don’t work are how to buy? and faq

    Moderator James Huff

    (@macmanx)

    I’m going to guess that they aren’t working because of the non-western characters in the page slug. Try changing the page slugs to “how-to-buy” and “faq” .

    Thread Starter shsh1345

    (@shsh1345)

    Thank you for all the help. It was the slugs I changed it and now it works.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Can’t use Pretty Permalinks’ is closed to new replies.