1
Whenever I publish a post appears https://www.site.com.br/blog/assunto/, would like to change the URL to https://www.site.com.br/assunto/
Follow my htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>
Hamurabi, then https://www.site.com.br/blog I can’t change this structure in wordpress. I wonder if by. htaccess with you Search /blog or mask. Grateful.
– Marcelo Prates
Try to use the code of the
.htaccess
that I put up. A manual editing of the file also works, except that if by any chance someone, in the administrative panel of wp, makes a change in the configuration of the permanent links, the.htaccess
will be overwritten and configs will be lost.– Hamurabi Araujo