url method 2 advancement

Register an Account
Reply
 
Thread Tools Display Modes
  #11 (permalink)  
Old 02-11-2007, 06:45 PM
Pligg Donor
 
Join Date: Feb 2007
Posts: 10
In 9.0 beta I find 2 lines at the bottom of category management ---

If you're using URLMethod 2, you'll want to use this line in your .htaccess file.

RewriteRule ^(all|CrazyNews|FunnyStories|Jokes|FunnyVideos|Goo dHumorSites)/([a-zA-Z0-9-]+)/?$ story.php?title=$2 [L]
RewriteRule ^(all|CrazyNews|FunnyStories|Jokes|FunnyVideos|Goo dHumorSites)/?$ ?category=$1 [L]

which of these lines do I paste in .htaccess.default or do I paste both over the line --
RewriteRule ^(all|pligg|category1|category2)/([a-zA-Z0-9-]+)/?$ story.php?title=$2 [L]

After pasting this or these lines I then rename htaccess.default to htaccess - right?

Also my htaccess.default is not preceded by a period -- should it be?

Thanks, Phil
Reply With Quote
  #12 (permalink)  
Old 01-08-2010, 03:27 AM
New Pligger
 
Join Date: Dec 2009
Posts: 3
Quote:
Originally Posted by davebowker View Post
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
By default xampp or wamp rewrite mode in apache is disabled. u will need to enable it for url method 2 to work in your localhost. to enable, u can follow the following url: How to enable mod_rewrite in XAMPP
Reply With Quote
  #13 (permalink)  
Old 01-08-2010, 03:54 AM
anudeepkanwar's Avatar
Constant Pligger
 
Join Date: Sep 2009
Location: India
Posts: 103
Send a message via MSN to anudeepkanwar
Quote:
Originally Posted by Type40 View Post
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.
after copying that code where i have to paste it in htaccess file. means after or before which code.
Reply With Quote
  #14 (permalink)  
Old 01-12-2012, 01:12 PM
New Pligger
 
Join Date: Dec 2011
Posts: 2
On my Social Bookmarking site, I am using pligg 1.2 and can not find htaccess.default to rename it, I can only find a file called htaccess.txt, beside I do not understand what is " SVN on sourceforge " can some explain to me ? Thanks

Last edited by sendmepc; 01-28-2012 at 07:05 PM.
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