

| |||||||
| | LinkBack | Article Tools | Display Modes |
| ||||
| URL Method Reserved for future use. Need a Web Host ? Save up to $84 when you purchase hosting from Dreamhost.com. Use the coupon code PLIGG when buying a web hosting package from Dreamhost.com Last edited by Yankidank; 09-03-2007 at 06:10 PM. |
|
#2
URL Method | ||||||
| URL Method is the term used to describe the way a URL is formed. There are generally 2 types. Method 1 = dynamic urls (default) and Method 2 = static urls
Dynamic vs Static urlsDynamic urls contain variables and are typically seen on database driven sites like blogs and forums. A static url does not contain any variables and does not change. Static urls are easier for your users to read. They are also sometimes ranked higher by search engines. Examples Dynamic url: yoursite.com/pligg/story.php?title=storytitle Static url: yoursite.com/pligg/news/yourstorytitle Url Method optionsThere are three options on the Url Method page in the admin panel. Choose Url Method 2 to enable static urls.
.htaccessIf you enable Url Method 2 in the admin panel you should see static urls on your site but when you click on an internal link you'll probably get a 404 this page can not be found error. In order to work properly Url Method 2 requires modifications to your .htaccess file so that so that the new friendly urls are properly mapped to the actual files they refer to. There is a default .htaccess file included in your Pligg installation called htaccess.default that contains a long list of rewrite commands that are meant to get you started. But you will probably need to modify this file in order to get static urls working properly on your site. Step by Step Instructions
If your Pligg is installed in a subfolderIf Pligg is installed in a subfolder: (ie : yourdomain.com/pligg/) then you will need to modify the RewriteBase in .htaccess: Change RewriteBase / to RewriteBase /pligg/ Rewrite rule for categoriesEvery time you add a new category to your site you need to update the mod rewrite rules for the category urls. Simply go back to the admin panel / category management page copy the new rewrite rule and paste it on top of the old one in your .htaccess file. It's not working. How do i go back?If this doesn't work, mod_rewrite probably isn't enabled on your webserver. You can go back to the admin panel and set Url Method to 1 again. No harm was done to any files during the instructions above and your site should operate fine without friendly urls.
| ||||||
| Article Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sort news options on Published/Upcoming tabs do not support Voting Method 2 | aaronpais | Modification Tutorials | 2 | 05-19-2007 10:31 AM |
| FIX for gzip compression troubles, no .htaccess gzip compression method required | Daniel | Modification Tutorials | 8 | 02-16-2007 03:16 PM |
| url method 2 advancement | davebowker | General Help | 10 | 02-11-2007 05:45 PM |