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, 50 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 - Mod Rewrite help needed for out of practice coder [ ]
 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
davper
Corporal
Corporal


Joined: Apr 07, 2003
Posts: 56

Location: Boston, MA USA

PostPosted: Wed Aug 02, 2006 7:22 pm Reply with quoteBack to top

I have a news feed that I want to integrate into my site.

I can get the feed to appear inside of a block or module ok. But the problem lies in getting the actual article appear as part of my nuke site.

The links reference(and cannot be changed) /catarticle.php in my sites root. There is code in here that pulls the article to my site but it does'nt appear as part of the nuke site.

So I was thinking that I could use mod rewrite to link to a module that has the code to pull the article. I have mod_rewrite working for all the nuke standard stuff already.

Here is what I have so far:

header.php
url in section
Code:
"'(?<!/)catarticle.php\?articleid=([0-9]*)&amp;e=([0-9]*)'"

url out section
Code:
"catarticle-\\1-\\2.html"


.htaccess
Code:
RewriteRule ^catarticle-([0-9]*)-([0-9]*).html /modules.php?name=catarticle&articleid=$1&e=$2

in header.php, I added a comma to the last line and added these to lines to each section. So order is not the issue.

Everything still works except I am not getting the url to change for catarticle.php.

Am I barking up the wrong tree with using rrewrite or did I miss something stupid?

Please and thank you
Find all posts by davperView user's profileSend private messageVisit poster's websiteICQ Number
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.273 Seconds - 342 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::