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, 150 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 - Google Tapping your own module [ ]
 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
relic
Nuke Soldier
Nuke Soldier


Joined: Jul 20, 2003
Posts: 19

Location: United States

PostPosted: Thu Aug 21, 2003 3:55 pm Reply with quoteBack to top

I'm having problems getting a /modules.php?name=Drivers link to redirect to a /drivers.html address. I added this in my .htaccess file:

#Drivers
RewriteRule ^drivers.html modules.php?name=Drivers

Unfortunately both /modules.php?name=Drivers and /drivers.html are valid links, but the link that points to /modules.php?name=Drivers won't redirect to /drivers.html.

It's not like lets say the /modules.php?name=FAQ link that when you click it you automatically go to /faq.html.

Does something have to be added in header.php?

_________________
David / Relic
SiliconReview.com
Find all posts by relicView user's profileSend private messageSend e-mailVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger
relic
Nuke Soldier
Nuke Soldier


Joined: Jul 20, 2003
Posts: 19

Location: United States

PostPosted: Thu Aug 21, 2003 4:03 pm Reply with quoteBack to top

Oops, I think I figured it out:

I added this (header.php):

function replace_for_mod_rewrite(&$s) {
$urlin = array(
"'(?<!/)modules.php\?name=Drivers'",
"'(?<!/)modules.php\?name=News&amp;file=article&amp;sid=([0-9]*)&amp;mode=([a-z]*)&amp;order=([0-9]*)&amp;thold=([0-9]*)'",

and

$urlout = array(
"drivers.html",
"article-\\1-\\2-\\3-\\4.html",


By looking at the lising of urlin and urlout it looked as if zx put everything in order, maybe b/c it won't work otherwise. Either way I kept it in an order type of thing. Could someone just tell me if this will work permanently without causing some sort of flaw? Thanks!

_________________
David / Relic
SiliconReview.com
Find all posts by relicView user's profileSend private messageSend e-mailVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Thu Aug 21, 2003 6:20 pm Reply with quoteBack to top

Smile

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
Mesum
Support Staff
Support Staff


Joined: Mar 11, 2003
Posts: 842

Location: Chicago

PostPosted: Fri Aug 22, 2003 6:03 am Reply with quoteBack to top

Zhen-Xjell wrote:
Smile

Dude you should quit try to jack your post count Very Happy

_________________
Only FREE Dating site for Desis.
Find all posts by MesumView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Fri Aug 22, 2003 6:06 am Reply with quoteBack to top

Mesum wrote:
Zhen-Xjell wrote:
Smile

Dude you should quit try to jack your post count Very Happy
Believe me if I wanted to jack up my post count I could easily do so in the mysql database.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit 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 - TUTTISU E-COMMERCE http://www.tuttisu.it
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.683 Seconds - 93 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::