I have an old URL syntax and since I changed my CMS, the old syntax doesn't work anymore and I have a lot of error 404. I want to delete "article.php?p=" here :
to :
How can I totally remove the string "article.php?p=" from my URLs with htaccess please ? I tried a lot of things but it seems too difficult for me.
To redirect the old URL to the new one, you must first capture the page's name from the query string with
RewriteCond
and then use this inRewriteRule
To remove article.php?p= use the following:
You can use this as an alternative: