url method 2 advancement

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 12-03-2006, 07:48 PM
Casual Pligger
 
Join Date: Oct 2006
Posts: 33
hey,

i've been looking over the forums for information on how to implement url method 2.

it seems that alot of posts who posted on the subject get so far before someone redirects them to the pligg wiki on url method 2, before the thread stops.

unfortunately the information on the pligg wiki is more of how the url method works, instead of a set of instructions to work through to get url method 2 working.

i hope that someone who has figured out how to do this can reply with instructions. once i know how to do it, i can write it up on the wiki for all to see, and hopefully put an end to this.

hope someone can help

dave
Reply With Quote
  #2 (permalink)  
Old 12-03-2006, 07:59 PM
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,215
I don't have any experience with mod_rewrite but you'll have to use it in your htaccess file to get method 2 to work. Here's a tutorial http://www.sitepoint.com/article/guide-url-rewriting
Reply With Quote
  #3 (permalink)  
Old 12-03-2006, 10:14 PM
Casual Pligger
 
Join Date: Oct 2006
Posts: 33
hey kb,

cheers for your input mate, but i'm not really a programmer. i don't understand too much and following that link is like trying to understand chinese.

jus hopeful that someone on here can understand a little so they can give us non techies a run down on how to do it.

if you know anyone who may be able to jump in and figure it, pass it on bud, and I shall do the same.

dave
Reply With Quote
  #4 (permalink)  
Old 12-05-2006, 10:40 AM
New Pligger
 
Join Date: Oct 2006
Posts: 19
Its not too bad, I think most people are having problems because their hosts don't allow mod_rewrite.

1. Check with your host to see if its allowed or buy a dreamhost package to help pligg dev.
2. Get the latest htaccess.default from the SVN on sourceforge.
3. Go to your admin panel/category management. At the bottom there is a rewrite rule for the categories. You need to copy the line for this whole thing to work right. Paste over the line
RewriteRule ^(all|pligg|category1|category2)/([a-zA-Z0-9-]+)/?$ story.php?title=$2 [L]
in htaccess.default and redo it every time you add a new category in the future.
4. Upload htaccess.default to your webserver in the root directory of your install. Overwrite the existing one.
5. Rename that file to ".htaccess" no quotes. Note the period in front. That period denotes a hidden file, and may cause it to disappear from some crappy FTP clients. You might need to enable showing of hidden files or call it by name when downloading.
6. Turn on URL Method 2 in the admin panel.
7. Enjoy friendly URL's

This is only for a URL base install. A sub-directory install needs to be tweaked a bit.

If it doesn't work, mod_rewrite isn't enabled on your webserver. If it doesnt, go back and change the URL method, no harm has been done to any files.

Last edited by Type40; 12-05-2006 at 11:13 AM. Reason: clarifications
Reply With Quote
  #5 (permalink)  
Old 12-05-2006, 10:55 AM
Casual Pligger
Pligg Version: 995
Pligg Template: Yget
 
Join Date: Sep 2006
Posts: 58
Does the latest htaccess.default from the SVN on sourceforge work with version 8.2.0?
Reply With Quote
  #6 (permalink)  
Old 12-05-2006, 11:10 AM
New Pligger
 
Join Date: Oct 2006
Posts: 19
AFAIK it should, that is the current release. The new version on SVN should contain additions and bugfixes.
Reply With Quote
  #7 (permalink)  
Old 12-05-2006, 11:11 AM
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,215
Yes, but it's only different from the 8.2 version by a line or two.
Reply With Quote
  #8 (permalink)  
Old 12-05-2006, 01:53 PM
Casual Pligger
Pligg Version: 995
Pligg Template: Yget
 
Join Date: Sep 2006
Posts: 58
Thank you guys. It works like a charm.
Reply With Quote
  #9 (permalink)  
Old 12-05-2006, 03:15 PM
Constant Pligger
 
Join Date: Oct 2006
Posts: 220
Pligg Wiki - Url Method has been updated with Type40's instructions.
Reply With Quote
  #10 (permalink)  
Old 12-05-2006, 11:29 PM
Casual Pligger
 
Join Date: Oct 2006
Posts: 33
Thanks guys.

I was going to try and update the wiki for everyone but it seems revolver beat me to it. cheers bud.

incase anyone was wondering, the url method 2 doesnt seem to work on http://localhost incase any of you are using wamp/xampp to build on, but follow the instructions and they will work online.




cheers all
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
FIX for gzip compression troubles, no .htaccess gzip compression method required Daniel Questions and Comments 9 06-07-2010 09:06 AM
Using Search Method 4 - Tags will not work hotsitez Questions and Comments 11 11-29-2008 08:54 PM
Incorrect Links with Admin User Management Page Numbers with URL Method 2 NewsHeatDotCom Questions and Comments 0 06-17-2008 03:41 PM
Has anyone got Friendly Urls (Url Method 2) working? revolver Questions and Comments 11 05-08-2008 01:32 AM
Search Method 3 and 4 in Pligg version 9.8.2 broke Iceburg Questions and Comments 3 11-03-2007 08:03 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development