Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6
Author Message
alexwise
Regular
Regular



Joined: Oct 15, 2005
Posts: 80

PostPosted: Sat Feb 25, 2006 9:41 am Reply with quote

We are just upgrading our 6.8 site to the Raven 7.6 pack wich is bloody great btw keep up the great work...

My question is, on 6.8 we used the sections module which from what I can see is not in 7.6 which is not a huge problem apart from one article we have in sections.
We have in our flash menu bar (which we dont have the FLA files for) a link to one of the sections articles.

Is it posible in the site to set up a redirect so when they click on the dead link it forwards it to a working article in 7.6?

The link it points to is this at the moment ...
[ Only registered users can see links on this board! Get registered or login! ]

Thanks Very Happy
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sat Feb 25, 2006 3:44 pm Reply with quote

RavensScripts

An easy job for mod_rewrite via .htaccess ! Add this code to your .htaccess file.

RewriteRule ^oursite\.com/modules.php?name=Sections&op=viewarticle&artid=31$ new.url [R]

Where new.url is the new url/link. There are other ways but this one should work just fine.
 
View user's profile Send private message
alexwise







PostPosted: Mon Feb 27, 2006 2:23 am Reply with quote

Thanks Raven, nice simple fix that I was hoping for.

Btw your instal instructions for Raven 7.6 pack are soo good, even though I know how to load a nuke sql, it was so nice to see such a simple instal for a nuke packegde.
My hat off to you, I'm sure this is going to be the top nuke bundle, if not allready.
 
Raven







PostPosted: Mon Feb 27, 2006 8:38 am Reply with quote

Thanks for the encouraging words!
 
alexwise







PostPosted: Mon Feb 27, 2006 8:39 am Reply with quote

Spoke to soon , not working for example I have ....

RewriteRule ^oursite\.com/modules.php?name=Sections&op=viewarticle&artid=31$ newsite.com/index.html [R]
 
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Mon Feb 27, 2006 10:06 am Reply with quote

I'm not sure that works. Does the RewriteRule actually see anything after the query ?

_________________
- Star Wars Rebellion Network -

Need help? Nuke Patched Core, Coding Services, Webmaster Services 
View user's profile Send private message Visit poster's website
Raven







PostPosted: Mon Feb 27, 2006 10:21 am Reply with quote

RewriteRule ^oursite\.com/modules\.php?name=Sections&op=viewarticle&artid=31$ newsite.com/index.html [R]

That should work. Are you using GT? Is GT grabbing it before it can do the rewrite?
 
Raven







PostPosted: Mon Feb 27, 2006 10:48 am Reply with quote

You might try

RewriteRule ^(.*)oursite\.com/modules\.php?name=Sections&op=viewarticle&artid=31$ newsite.com/index.html [R]
 
alexwise







PostPosted: Mon Feb 27, 2006 11:35 am Reply with quote

No, that's not working.
I dono what GT is ?
 
alexwise







PostPosted: Mon Feb 27, 2006 12:09 pm Reply with quote

oh hang on that's your distro pack yeah? if so then yes I am using it.
 
evaders99







PostPosted: Mon Feb 27, 2006 7:44 pm Reply with quote

Unfortunately it won't work like that because RewriteRule does not include the query string

You will need some conditional statement for that to function
Example
?cmd=submit
to
index.php?submit

Code:


RewriteCond %{QUERY_STRING} ^cmd=submit$
RewriteRule ^$ index.php?submit [R]
 
alexwise







PostPosted: Wed Mar 01, 2006 8:12 am Reply with quote

hmmm.. I'm lost in what part do I put the /modules.php?name=Sections&op=viewarticle&artid=31

I tryed putting it in a few places but nothing.
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6

View next topic
View previous 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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©