Reserved for future use.
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
[h3]Dynamic vs Static urls[/h3]
Dynamic 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.
Dynamic url: yoursite.com/pligg/story.php?title=storytitle
Static url: yoursite.com/pligg/news/yourstorytitle
[h3]Url Method options [/h3]
There are three options on the page in the . Choose 2 to enable static urls.
- Method 1 = dynamic urls (default)
- Method 2 = static urls
If you enable 2 in the 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 2 requires modifications to your file so that so that the new friendly urls are properly mapped to the actual files they refer to.
There is a default file included in your 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.
[h3]Step by Step Instructions[/h3]
- Check with your host to see if mod rewrite is allowed. If not buy a dreamhost package to help pligg dev.
- Check with your host that Apache is configured to usefiles (AllowOverride All)
- Get the latest htaccess.default from theon sourceforge.
- Edit the file and make changes near the top if your Pligg site does not sit on the root of your domain. For example if you operate Pligg in a subdomain or subdirectory you will need to make edits. The file contains comments that direct you on where to make edits.
- Rename "htaccess.default" to "." (no quotes). Note the period in front. That period denotes a hidden file, and may cause it to disappear from some FTP clients. (You might need to enable showing of hidden files or call it by name when downloading).
- Turn on URL Method 2 in the admin panel by going to Admin > Configure > SEO and set theto 2.
[h4]If your Pligg is installed in a subfolder[/h4]
If Pligg is installed in a subfolder: (ie : yourdomain.com/pligg/) then you will need to modify the RewriteBase in :
Change RewriteBase / to RewriteBase /pligg/
[h4]It's not working. How do I go back?[/h4]
If this doesn't work, mod_rewrite probably isn't enabled on your webserver. You can go back to the and set to 1 again. No harm was done to any files during the instructions above and your site should operate fine without friendly urls.
comments failed for me when going to2...
it says "i can found this page into the site" or something like that, same for : upcoming news/published news/ and comments