Mobile app version of vmapp.org
Login or Join
Heady270

: 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">

@Heady270

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

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Heady270

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme