pmd website: update links, add a proper rewrite rule, add a nicer 404 error page
This commit is contained in:
12
website/.htaccess
Normal file
12
website/.htaccess
Normal file
@ -0,0 +1,12 @@
|
||||
Options Indexes FollowSymLinks
|
||||
ErrorDocument 404 /error404.html
|
||||
|
||||
RewriteEngine On
|
||||
|
||||
# rewrite any request to a unknown file to pmd-5.0.0
|
||||
# (or whatever subfolder the first rule will set to the environment variable PMD)
|
||||
# but redirect only if the file exists there
|
||||
RewriteRule .* - [E=PMD:pmd-5.0.0]
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond /home/project-web/pmd/htdocs/%{ENV:PMD}%{REQUEST_URI} -f
|
||||
RewriteRule .* /%{ENV:PMD}%{REQUEST_URI} [L,R]
|
21
website/error404.html
Normal file
21
website/error404.html
Normal file
@ -0,0 +1,21 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>PMD: 404 - Not Found</title>
|
||||
<meta http-equiv="content-type" content="text/xhtml;charset=UTF-8" />
|
||||
</head>
|
||||
<body>
|
||||
<h1>404 - Not Found</h1>
|
||||
|
||||
<p>Sorry! The requested page doesn't seem to exist.</p>
|
||||
<p>Here is what you can do:</p>
|
||||
<ul>
|
||||
<li>Start over at the homepage: <a href="http://pmd.sourceforge.net">http://pmd.sourceforge.net</a></li>
|
||||
<li>Email us and let us know what you were looking for: <a href="mailto: pmd-devel@lists.sourceforge.net">pmd-devel@lists.sourceforge.net</a></li>
|
||||
<li>Ask us in our <a href="http://sourceforge.net/p/pmd/discussion/188192/">discussion forum</a>.</li>
|
||||
<li>Try searching the page with <a href="https://www.google.com/search?q=site:pmd.sourceforge.net">google</a></li>
|
||||
</ul>
|
||||
<hr />
|
||||
<a href="http://pmd.sourceforge.net"><img src="http://pmd.sourceforge.net/pmd_logo.jpg" width="101" alt="PMD - Don't shoot the messenger" /></a>
|
||||
</body>
|
||||
</html>
|
@ -39,11 +39,11 @@
|
||||
<h3>Get Involved</h3>
|
||||
<ul>
|
||||
<li><a href="http://sourceforge.net/projects/pmd/">SourceForge Project Page</a></li>
|
||||
<li>Ask questions in the <a href="http://sourceforge.net/projects/pmd/forums/forum/188194">Forum</a></li>
|
||||
<li>Ask questions in the <a href="http://sourceforge.net/p/pmd/discussion/188194">Forum</a></li>
|
||||
<li>or join the <a href="https://lists.sourceforge.net/lists/listinfo/pmd-devel">Mailing List</a>
|
||||
(<a class="externalLink" href="http://java-pmd.30631.n5.nabble.com/">archive1</a>,
|
||||
<a class="externalLink" href="http://blog.gmane.org/gmane.comp.java.audit.pmd.devel">archive2</a>)</li>
|
||||
<li>Found a bug? <a href="http://sourceforge.net/tracker/?group_id=56262&atid=479921">Bug tracker</a></li>
|
||||
<li>Found a bug? <a href="http://sourceforge.net/p/pmd/bugs/">Bug tracker</a></li>
|
||||
<li>Source Code: <a class="externalLink" href="https://github.com/pmd/pmd">Check it out on github</a></li>
|
||||
<li>Our license: <a href="http://pmd.sourceforge.net/license.html">BSD-style</a></li>
|
||||
</ul>
|
||||
|
Reference in New Issue
Block a user