Tags, tag range and .htaccess rewrite on URL Method 2

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 12-01-2006, 02:44 AM
New Pligger
 
Join Date: Oct 2006
Posts: 19
Using 8.2.0, not sure the build, tags work great, tagcloud works great, and clicking on a tag range

i.e. ---

http://web.site/cloud.php?range=1 writes
http://web.site/tagcloud/range/1

works fine, prints the right range of tags for that time period. But, clicking on a tag within that range the rule (I assume)

RewriteRule ^tag/(.+)/?$ search.php?search=$1&tag=true [QSA,NC,L]

takes the URL

http://web.site/search.php?search=in...m=116478222 1
http://web.site/tag/internet/1164782221/

and shows no tags for -

"search results for internet/1164782221/" on the site.

Any ideas on how to get this to work? I know its not a highly sought after feature, but I'd like to get this to work.

Last edited by Type40; 12-01-2006 at 10:22 AM. Reason: fixed it
Reply With Quote
  #2 (permalink)  
Old 12-01-2006, 02:51 AM
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,215
try this ..edit: I think it's the same thing..
Code:
RewriteRule ^tag/(.+)/?$ search.php?search=$1&tag=true [QSA,NC,L]
Reply With Quote
  #3 (permalink)  
Old 12-01-2006, 09:36 AM
New Pligger
 
Join Date: Oct 2006
Posts: 19
I added the line -

RewriteRule ^tag/(.+)/([0-9]+)/?$ search.php?search=$1&from=$2&tag=true [QSA,NC,L]

above the previously stated line. It was that darn tags=true. The original URL has the tags=true between var1 and var2. In order to append the query string it has to be at the end in the rewrite rule. I say that because I left it as it was for about an hour and I kept wondering why it didn't work. Runs fine and spits out correct results. High Five.
Reply With Quote
  #4 (permalink)  
Old 02-17-2008, 10:42 AM
longcountdown's Avatar
Pligg Donor
Pligg Version: 9.8.2
Pligg Template: moderno-orange
 
Join Date: Nov 2007
Location: Japan
Posts: 75
Awesome, that worked for me!
Reply With Quote
  #5 (permalink)  
Old 05-05-2008, 01:44 PM
New Pligger
Pligg Version: 9.9
 
Join Date: Apr 2008
Posts: 15
Thanks. It works in 9.9.0 !
Reply With Quote
  #6 (permalink)  
Old 05-05-2008, 06:14 PM
Casual Pligger
 
Join Date: Apr 2008
Posts: 48
I used the above rules, I am using 9.9.0, and it still does not work.
Reply With Quote
  #7 (permalink)  
Old 10-13-2008, 02:31 AM
Constant Pligger
Pligg Version: 1.1.4
Pligg Template: Social Pro
 
Join Date: Jun 2007
Location: Colorado
Posts: 192
Quote:
Originally Posted by na3s View Post
I used the above rules, I am using 9.9.0, and it still does not work.
Your rewrite should look like this

Code:
RewriteRule ^tag/(.+)/([0-9]+)/?$ search.php?search=$1&from=$2&tag=true [QSA,NC,L]
RewriteRule ^tag/(.+)/?$ search.php?search=$1&tag=true [QSA,NC,L]
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
URL Method Yankidank Wiki Articles 5 06-30-2010 06:08 PM
FIX for gzip compression troubles, no .htaccess gzip compression method required Daniel Questions and Comments 9 06-07-2010 09:06 AM
Automatically add category/story rewrite rules to .htaccess warefare Questions and Comments 1 07-30-2009 02:46 AM
.htaccess rename issues URL method 2 issues eiro0701 Questions and Comments 2 03-27-2009 09:38 AM
url method, rewrite and parameters kkretsch Questions and Comments 1 08-17-2007 10:55 AM


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