• I have read all the most of the tutorial but i still cant get how to mod_rewrite htaccess so my permalinks with this structure work properly /%category%/%postname%/

    Below is how my htaccess look. Can you please advise me on what it should look like to enable the rewright

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

    # END WordPress

    The url of my site is https://wearewithyou.co.uk

    Many Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter sherry_d

    (@sherry_d)

    anyone who can help me with this please. I am just stuck

    Your .htaccess looks right, as does your permalink structure.

    But I would start over and try again. If you don’t have anything else in your .htaccess file, download it with your FTP client, open it up and delete the content. Re-upload it, check to make sure that the permissions are set to “777”.

    Then go back into the “Permalinks” section of the WordPress Dashboard, and change to one of the default common settings, like “Day and name”.

    Then save the changes to have WordPress write to your .htaccess file. If this works, then you can try editing the permalink structure.

    Are you on Linux webhosting?

    Thread Starter sherry_d

    (@sherry_d)

    I was using remove top level categories plugin and this was causing the error. I just deactivated it and everything began working properly but i now have “category” before each category.

    Hey problem solved finally

    sorry – old post.

    Hi, I am having a similar problem. I am trying to create a .htaccess file in my httpdocs directory for my site url https://bimach.com/main

    My htaccess file looks like this:

    # BEGIN WordPress

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

    # END WordPress

    My htaccess file is set to 777. But when I try to change my permalinks I still get a dialogue saying that my htaccess is not writable and I have to put the code in.

    Any help appreciated.
    Thanks.

    Never, mind. Figured it out.

    I put the .htaccess file in the /main folder and took out all the code that specified accessing the /main directory. Works now.

    Of course the other approach is to include your rewrite rules/config in the Apache httpd.conf (if you have access). See the example provided here: https://bytearray.brixtonjunkies.com/2009/08/19/wordpress-permalinks-apache-setup/

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Help me please to mod_rewrite htaccess for permalinks’ is closed to new replies.