i need to do a trick directly after the file extension
http://www.your-name.dk/Whatever-url.php-Whatever 301
--> http://www.your-name.dk/Whatever.php
I have try this one but did not Work
RedirectMatch permanent (.*).php.* htt*://www.your-name.dk/$1.php
Enable mod_rewrite and .htacess and then add this code in your .htaccess under DOCUMENT_ROOT:
Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On
RewriteBase /
RewriteRule ^([^-]+)-[^.]+\.php-\1$ $1.php [L,NC,R=301]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.