Go Back   Pligg Forum > Pligg Help > General Help
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-03-2006, 05:48 PM
davebowker davebowker is offline
Casual Pligger
 
Join Date: Oct 2006
Posts: 33
Downloads: 0
Uploads: 0
Thanks: 6
Thanked 5 Times in 4 Posts
url method 2 advancement

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
Sponsored Links
Check out the New Templates at the Pligg Pro Shop.
  #2 (permalink)  
Old 12-03-2006, 05:59 PM
kbeeveer46's Avatar
kbeeveer46 kbeeveer46 is offline
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,579
Downloads: 62
Uploads: 6
Thanks: 255
Thanked 651 Times in 515 Posts
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
__________________
I accept donations for my time helping users like you on the forum and IRC.

FREE and premium Pligg Web Hosting (NO ads, Includes MySQL, PHP, PHPMyAdmin, and Control Panel) - PM me for discounts on premium packages or if you would like a custom-made package. Paypal accepted.
Reply With Quote
  #3 (permalink)  
Old 12-03-2006, 08:14 PM
davebowker davebowker is offline
Casual Pligger
 
Join Date: Oct 2006
Posts: 33
Downloads: 0
Uploads: 0
Thanks: 6
Thanked 5 Times in 4 Posts
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, 08:40 AM
Type40 Type40 is offline
New Pligger
 
Join Date: Oct 2006
Posts: 22
Downloads: 0
Uploads: 0
Thanks: 1
Thanked 7 Times in 4 Posts
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 09:13 AM. Reason: clarifications
Reply With Quote
  #5 (permalink)  
Old 12-05-2006, 08:55 AM
Dubai Dubai is offline
Casual Pligger
Pligg Version: 995
Pligg Template: Yget
 
Join Date: Sep 2006
Posts: 60
Downloads: 7
Uploads: 0
Thanks: 10
Thanked 3 Times in 3 Posts
Does the latest htaccess.default from the SVN on sourceforge work with version 8.2.0?
__________________
Pligg - a Swiss version of Pligg (very much online)
Reply With Quote
  #6 (permalink)  
Old 12-05-2006, 09:10 AM
Type40 Type40 is offline
New Pligger
 
Join Date: Oct 2006
Posts: 22
Downloads: 0
Uploads: 0
Thanks: 1
Thanked 7 Times in 4 Posts
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, 09:11 AM
kbeeveer46's Avatar
kbeeveer46 kbeeveer46 is offline
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,579
Downloads: 62
Uploads: 6
Thanks: 255
Thanked 651 Times in 515 Posts
Yes, but it's only different from the 8.2 version by a line or two.
__________________
I accept donations for my time helping users like you on the forum and IRC.

FREE and premium Pligg Web Hosting (NO ads, Includes MySQL, PHP, PHPMyAdmin, and Control Panel) - PM me for discounts on premium packages or if you would like a custom-made package. Paypal accepted.
Reply With Quote
  #8 (permalink)  
Old 12-05-2006, 11:53 AM
Dubai Dubai is offline
Casual Pligger
Pligg Version: 995
Pligg Template: Yget
 
Join Date: Sep 2006
Posts: 60
Downloads: 7
Uploads: 0
Thanks: 10
Thanked 3 Times in 3 Posts
Thank you guys. It works like a charm.
__________________
Pligg - a Swiss version of Pligg (very much online)
Reply With Quote
  #9 (permalink)  
Old 12-05-2006, 01:15 PM
revolver revolver is offline
Constant Pligger
 
Join Date: Oct 2006
Posts: 232
Downloads: 5
Uploads: 0
Thanks: 56
Thanked 22 Times in 18 Posts
Pligg Wiki - Url Method has been updated with Type40's instructions.
Reply With Quote
  #10 (permalink)  
Old 12-05-2006, 09:29 PM
davebowker davebowker is offline
Casual Pligger
 
Join Date: Oct 2006
Posts: 33
Downloads: 0
Uploads: 0
Thanks: 6
Thanked 5 Times in 4 Posts
:)

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
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Has anyone got Friendly Urls (Url Method 2) working? revolver General Help 11 05-07-2008 11:32 PM
[SOLVED] Error: uncaught exception: Permission denied to call method XMLHttpRequest.o picklekicker Bug Report 13 09-30-2007 08:19 PM
URl method 2 johnny838 Retired Threads 3 11-27-2006 01:50 PM
URL Method 2 does not seem to work Night Shaded General Help 12 11-20-2006 08:24 PM
URL Method nish Bug Report 4 09-16-2006 03:01 PM


LinkBacks Enabled by vBSEO 3.0.0