Viewing 8 replies - 1 through 8 (of 8 total)
  • Just set the permalinks to the structure you want. https://codex.www.ads-software.com/Using_Permalinks#Choosing_your_permalink_structure

    WordPress takes care of the htaccess.

    You don’t need to play around with your .htaccess file yourself.

    In your sites admin area, go to ‘Settings -> Permalinks’ and choose the right setting there. That will update your .htaccess file for you and tell WordPress ot use the correct URL’s at the same time.

    Thread Starter AdamsAutoAdvice

    (@adamsautoadvice)

    Thanks! WordPress seriously rocks!

    This worked in the default theme, but I tried another site I have and it just gave me 404s everywhere.

    https://www.carnewscafe.com/

    Double-check that your .htaccess file is writable by the system. If it isn’t you should see an error, but that doesn’t happen all the time.

    Thread Starter AdamsAutoAdvice

    (@adamsautoadvice)

    You mean that my web hosting company my not allow external .htaccess edits @catacaustic?

    It’s possible. It all depends on what file permissions are set by the server for that file.

    But… There shouldn’t be any differnce no matter which theme you use, so I’d be concerned if it worked using the default theme, but not another theme. That would point to an issue with the theme not working correctly (saying that without any other info though so could be wrong).

    When I try to access my site https://duozmedia.com my site doesn’t open, instead a file downloads. If I log into the backend and go to Settings/Permalinks I have this message at the bottom:

    “If your .htaccess file were writable, we could do this automatically, but it isn’t so these are the mod_rewrite rules you should have in your .htaccess file. Click in the field and press CTRL + a to select all.”

    then this code:

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

    Can anybody tell me what is happening? Why my .htaccess file is not writable anymore and how I can fix this so as people can access my site?

    Thanks

    @mikesart1
    As per the forum rules, please start a new topic with a title specific to your issue. This is the best way to get support for your issue.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to create Clean URLs with htaccess?’ is closed to new replies.