: As John Conde suggests, you should fix the link that is causing these errors. It is likely a broken link to links.php that looks something like: <a href="www.example.com/links.php">
As John Conde suggests, you should fix the link that is causing these errors. It is likely a broken link to links.php that looks something like:
<a href="www.example.com/links.php">
which is missing the and should be
<a href="http://www.example.com/links.php">
or if you want to use relative linking:
<a href="/links.php">
However, you also want to do the redirect. The RedirectMatch directive from mod_alias can help. Here is how you strip off everything at the end:
RedirectMatch ^(.*)/www.example.com/.*$ www.example.com
Alternately, because the broken link probably points to the links page, you may want to strip off everything at the beginning instead so that broken links work better for visitors:
RedirectMatch ^.*/www.example.com(/.*)$ www.example.com
More posts by @Heady270
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.