Capefox
Member
Posted 3 months ago #
I have set my Permalinks structure to /%postname%/ and saved the changes but I still get /category/ appearing between my domain name and the post name, e.g.: "mydomain.com/category/postname. Even after I refresh the page the word "category" remains.
I was advised to delete the "htaccess" file so I deleted it but it made no difference.
How can I stop the word "category" from appearing in my permalinks?
cristopher_elsner
Member
Posted 3 months ago #
hello,
If you use this "/%postname%". may be it solve.
just remove one backslash behind from above code.
Crish.
Capefox
Member
Posted 3 months ago #
Thanks, Crish - but it did not work, unfortunately. It's a very stubborn problem! I've sent a message to my hosting company, I hope they can help. Best wishes!
cristopher_elsner
Member
Posted 3 months ago #
hi,
If you set your htaccess file with this code may be it will be set as per your requirement.
Code :
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Thanks.
crish
Capefox
Member
Posted 3 months ago #
Thank you, Crish! I managed to sort out the problem and am happy with the result. Best regards!