Go Back   Pligg Forum > Pligg Help > General Help
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-21-2006, 11:13 AM
canadianguy33 canadianguy33 is offline
New Pligger
 
Join Date: Apr 2006
Posts: 28
Downloads: 0
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
$16 to Anyone That Can Solve My Friendly Url Problem

Hello pliggers!

I've got $16 Canadian in my paypal account for anyone that can get my friendly urls working. lol

I know $16 isn't a lot but that's all I have in my paypal account at the moment. If you know the secret to getting the friendly urls working and you share that secret with me I'll give you a whopping $16 and my gratitude.

Here's my .htaccess:

##### Re-directing Begin #####
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ http://www.hollywoodscoops.com/ [R=301,L]
RewriteCond %{HTTP_HOST} ^hollywoodscoops\.com$ [NC]
RewriteRule ^(.*)$ http://www.hollywoodscoops.com/$1 [R=301,L]
##### Re-directing End #####

##### Friendly URLs Begin #####
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteRule ^story/([0-9]+)/?$ story.php?id=$1 [L]
RewriteRule ^story/([a-zA-Z0-9-]+)/?$ story.php?title=$1 [L]
RewriteRule ^(all|celebrity_fashion|celebrity_gossip|celebrity _rehab|hollywood_buck_offs!|hollywood_hook_ups|mov ies|music|paparazzi|television)/([a-zA-Z0-9-]+)/?$ story.php?title=$2 [L]
RewriteRule ^category/([a-zA-Z0-9]+)/?$ ?category=$1 [L]
RewriteRule ^category/queued/([a-zA-Z0-9]+)/?$ shakeit.php?category=$1 [L]
RewriteRule ^shakeit/([a-zA-Z0-9]+)/?$ shakeit.php?category=$1 [L]
RewriteRule ^story/([0-9]+)/editcomment/([0-9]+)?$ edit.php?id=$1&commentid=$2
RewriteRule ^story/([0-9]+)/edit/?$ editlink.php?id=$1
RewriteRule ^story/([0-9]+)/modify/([a-z]+)/?$ linkadmin.php?id=$1&action=$2
RewriteRule ^user/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/?$ user.php?login=$1&view=$2
RewriteRule ^user/([a-zA-Z0-9-]+)/?$ user.php?login=$1
RewriteRule ^search/([a-zA-Z0-9-]+)/?$ index.php?search=$1
RewriteRule ^login/?$ login.php
RewriteRule ^login/([a-zA-Z0-9-]+)/?$ login.php?return=$1
RewriteRule ^login/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/?$ login.php?return=$1/$2
RewriteRule ^register/?$ register.php
RewriteRule ^user/?$ user.php
RewriteRule ^topusers/?$ topusers.php
RewriteRule ^topstories/?$ topstories.php
RewriteRule ^about/([a-zA-Z0-9-]+)/?$ faq-$1.php
RewriteRule ^shakeit/?$ shakeit.php
RewriteRule ^submit/?$ submit.php
RewriteRule ^bugreport/?$ bugreport.php
RewriteRule ^rss2/?$ rss2.php
RewriteRule ^rss2/([a-zA-Z0-9-]+)/?$ rss2.php?status=$1
RewriteRule ^trackback/([0-9]+)/?$ trackback.php?id=$1
RewriteRule ^profile/?$ profile.php
RewriteRule ^admin/?$ admin_index.php
RewriteRule ^tagcloud/?$ cloud.php
RewriteRule ^tagcloud/range/([0-9]+)/?$ cloud.php?range=$1 [L]
RewriteRule ^tag/(.+)/?$ index.php?search=$1&tag=true [QSA,NC,L]
RewriteRule ^sneak/?$ sneak.php
RewriteRule ^pliggadmin/?$ admin_index.php
RewriteRule ^logout/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/?$ login.php?op=logout&return=$1/$2
##### Friendly URLs End #####

Here's what I have in my config.php:

// URL Method
// change both lines below
$URLMethod = 1;
define('urlmethod', $URLMethod);
//1 = original method -- 2 = /story/25/ method.
// ---

// Friendly URL's for stories
define('enable_friendly_urls', true);
// ---

As far as I know these are the only files I'm supposed to change to enable friend urls, is that correct?

Could the problem be that one of my categories has an exclamation point in it?

Thanks,

Jay
Reply With Quote
Sponsored Links
Check out the New Templates at the Pligg Pro Shop.
  #2 (permalink)  
Old 07-21-2006, 11:47 AM
3dKiller's Avatar
3dKiller 3dKiller is offline
Constant Pligger
 
Join Date: Mar 2006
Location: Newport Beach
Posts: 159
Downloads: 0
Uploads: 0
Thanks: 24
Thanked 2 Times in 1 Post
Jay,

First of all, the config.php file you are using is old. It did not come with rev. 138 (nightly build). Therefore, it will not get you what you want.

Maybe you posted the wrong information?

Anyway, here is my info which you can use an example:

// URL Method
// change both lines below
$URLMethod = 2;
define('urlmethod', 2);
//1 = original method --
//2 = /story/25/ method.
//3 = I want URLMethod=2, but it gives me errors (search, login, submit, tagcloud).
// Let the MB hacks try to solve those problems and still have URLMethod=2

// ---

Friendly URL's sorta work using urlmethod=2 OR '3', but some things are still broken, like clicking on a category link in 'queued news' or editing a comment. Both of those items are broken and have been reported to Ashdigg as bugs.

BTW, thanks reporting on script.aculo.us.

~3d
Reply With Quote
  #3 (permalink)  
Old 07-21-2006, 02:49 PM
canadianguy33 canadianguy33 is offline
New Pligger
 
Join Date: Apr 2006
Posts: 28
Downloads: 0
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Hey 3d thanks for the reply. Unfortunately, it's still not working. Any ideas? I have B7.2 installed.
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
Seo Friendly Urls - Urlmethod 2 canadianguy33 General Help 15 05-12-2007 08:57 PM
RSS and localization jackdaw Core Development 5 05-10-2007 03:24 AM
Fixing Problem reporting dwg Bug Report 7 07-28-2006 09:51 AM
Friendly urls sid Bug Report 0 07-01-2006 11:14 PM
Problem form doesn't work! nabil Bug Report 1 04-01-2006 07:53 PM


LinkBacks Enabled by vBSEO 3.0.0