You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 61 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Passing strings to GT's mod_rewrite [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
THoTH
Nuke Cadet
Nuke Cadet


Joined: Feb 15, 2006
Posts: 7


PostPosted: Tue Feb 21, 2006 1:38 pm Reply with quoteBack to top

I'm trying to convert a module (Guiki) to use SEO friendly URLs, I've had some success, but can't get over the final stumbling block.

The normal URL takes the form:

modules.php?name=Guiki&MODE=SHOW&PAGE=Science Definitions

the .htaccess entry I've added is:

RewriteRule ^dictionary-show-([[:punct:]/:\-\'%{}()._&a-zA-Z0-9+=]*).html modules.php?name=Guiki&MODE=SHOW&PAGE=$1

Given that the only parameter for the URL is PAGE, there is a space in what is constructed for the URL as you can see above "Science Definitions" which is why I've got the % character in the line above, as space gets converted to %20.

What's happening is I get a url which is http://www.domain.com/dictionary-show-science.html instead of

http://www.domain.com/dictionary-show-science%20definitions.html

When I enter that URL manually I get a page not found. I've tried adding an entry in the Googletap folder by creating a file called GT-Guiki.php and using the array in there, but the same results.

Please can anyone help? Confusing I know, but really do want to crack this one. GT isn't being developed any more I'm aware of that, but I'm hoping someone has the mod rewrite skills needed to help.
Find all posts by THoTHView user's profileSend private messageVisit poster's website
Audioslaved
Elite Nuker
Elite Nuker


Joined: Jun 14, 2003
Posts: 420

Location: Hawaii and The Fan Forum

PostPosted: Mon Feb 27, 2006 7:36 pm Reply with quoteBack to top

Try using this instead:
Code:

RewriteRule ^dictionary-show-([a-zA-Z0-9+=\%]*).html modules.php?name=Guiki&MODE=SHOW&PAGE=$1 [L]


There is really no need to be passing so much inside of your regex, try thinking about what passed through the page variable and adjust accordingly. Looking at the above, the space in Science Definitions, the % was added to take into account the Hex for space (%20).

The other side is what is getting converted inside of your Guiki mod in the GT-Guiki.php file. Post your GT-Guiki stuff up here so I can see what you have. Smile

Long time no see people! Smile Hope everyone is good! sting, good to see that name! hehe. Smile

_________________
GT-NExtGEn: The future of GoogleTap
http://gt-nextgen.com/

The Audioslave Fan Forum
http://www.audioslaved.com
Find all posts by AudioslavedView user's profileSend private messageSend e-mailVisit poster's website
Audioslaved
Elite Nuker
Elite Nuker


Joined: Jun 14, 2003
Posts: 420

Location: Hawaii and The Fan Forum

PostPosted: Mon Feb 27, 2006 7:37 pm Reply with quoteBack to top

Try using this instead:
Code:

RewriteRule ^dictionary-show-([a-zA-Z0-9+=\%]*).html modules.php?name=Guiki&MODE=SHOW&PAGE=$1 [L]


There is really no need to be passing so much inside of your regex, try thinking about what passed through the page variable and adjust accordingly. Looking at the above, the space in Science Definitions, the % was added to take into account the Hex for space (%20).

The other side is what is getting converted inside of your Guiki mod in the GT-Guiki.php file. Post your GT-Guiki stuff up here so I can see what you have. Smile

Long time no see people! Smile Hope everyone is good! sting, good to see that name! hehe. Smile

_________________
GT-NExtGEn: The future of GoogleTap
http://gt-nextgen.com/

The Audioslave Fan Forum
http://www.audioslaved.com
Find all posts by AudioslavedView user's profileSend private messageSend e-mailVisit poster's website
THoTH
Nuke Cadet
Nuke Cadet


Joined: Feb 15, 2006
Posts: 7


PostPosted: Tue Feb 28, 2006 1:45 pm Reply with quoteBack to top

I am absolutely over the moon, mr Audioslaved himself *prays* !!

Thank you so much for the advice, I'll try that out. Can I contact you via email about some problems that I've got with GT Nextgen, it's worked great for a long time, but for some reason the URL's have changed slightly recently, and my old news articles aren't accessible as it's not entering the article number in the url, also adding the word "thread"

Its complicated, but I can explain in these forums if you'd prefer that.

Thanks once again, and glad to know you're still around. You've done some great work, lets hope you continue Smile
Find all posts by THoTHView user's profileSend private messageVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.382 Seconds - 249 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::