Need help to strip out this string from url
index....</div></images/myblog_images/978
Incorrect URL
http://www.abc.com/index....%3C/div%3E%3C/images/myblog_images/978/index.php?option=com_news&view=detail&n_id=20&Itemid=4
Correct URL
http://www.abc.com/index.php?option=com_news&view=detail&n_id=20&Itemid=4
Many thanks
Edit
Hello Anubhav While applying the htaccess condition - the url is been changed to
http://www.abc.com/home/truecar7/public_html/index.php?option=com_news&view=detail&n_id=20&Itemid=4
您可以尝试以下代码:
RewriteRule ^.+?(index\.php)$ /$1 [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.