please, help me to solve this problem (just don’t advice me to use plugins like permalinks validator,…), i’d like to solve it through wordpress files.
i’ll soooooo appreciate !!
]]>exemple.com/blog/?p=123
exemple.com/blog/post-title-123.html
i’ve already set permalink, but, they are both indexed in google ;
normally, the default wordpress links redirect to the permalink , so why they don’t ?
thank you
]]>now,both permalink and old url structure are working, in other meaning
all links that looks like https://exemple.com/blog/?p=id don’t redirect to https://exemple.com/blog/friendly-url-id.html which result to duplicated content.
in a nutshell, i want to redirect 301 permanently https://exemple.com/blog/?p=id to https://exemple.com/blog/friendly-url-id.html
i used permalink validator and others plugins, but, unfortunetly, they restrict my blog to show up in google and other seach engines
…of caurse i have .htaccess file:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>
Please help me, i’m in a dielma since several months, and yet i didn’t figure out a solution.
thank you
]]>