| Home |
| Whats New? |
| Links |
| Search |
| FAQs |
| Forums |
| Downloads |
| Latest Freelance Jobs |
| Archives |
| FIle Archives |
| Freelance resources |
| Music Video Browser |
|
Assorted scripts
(1) |
|
DewNewPHPLinks
(7) |
| Captcha add-on for DewNewPHPLinks 2.0 |
|
| DewNewPHPLinks 2.1.0.1 |
|
| Mozilla Firefox Bookmark Importer |
|
| DewNewPHPLinks Bookmarklet creator v 0.99 |
|
| DNPL Ban List 1.0 |
| Getting DNPL to act as default homepage |
|
|
Installing DewNewPHPLinks in your web server's document root to create an enire site.
Many people are using DewNewPHPLinks to create their entire site. While that is a bit flattering, it wasn't really designed for this. A fresh install in your web server's document root will cause the included index.php to be invoked which in turn does a 301 redirect to the actual script, which is named simply "directory". That's fine for your typical visitor, but not so fine for search engine spiders.
Adding a mod-rewrite rule to the included .htaccess file will make it appear as if you have an index.html file, so the directory script will be served as your homepage (eg; when no filename is requested.)
I've extended that concept, so that even if a viewer requests index.php, htm or html they still get the actual script.
I've also included a rule to enforce the use of www when requesting your domain. This helps to ensure everyone that might link to your site uses a consistent domain name.
Of course for this to work, you server must have the mod_rewrite module installed in Apache, but luckily most web hosting companies do.
Here is the full .htaccess, but remember, use the mod rewrite rules only if you've installed the script in your uppermost web directory (typically named "www" or "public_html")
<Files directory>
## add mod rewrite rules RewriteEngine On
# Redirect non WWW to WWW RewriteRule (.*) http://www.yourdomain.com/$1 [R=301,L]
|
| Next > |
|---|