Author |
Message |
alexwise
Regular


Joined: Oct 15, 2005
Posts: 80
|
Posted:
Sat Feb 25, 2006 9:41 am |
|
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 ...
www.oursite.com/modules.php?name=Sections&op=viewarticle&artid=31
Thanks  |
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Sat Feb 25, 2006 3:44 pm |
|
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. |
|
|
|
 |
alexwise

|
Posted:
Mon Feb 27, 2006 2:23 am |
|
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

|
Posted:
Mon Feb 27, 2006 8:38 am |
|
Thanks for the encouraging words! |
|
|
|
 |
alexwise

|
Posted:
Mon Feb 27, 2006 8:39 am |
|
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
|
Posted:
Mon Feb 27, 2006 10:06 am |
|
I'm not sure that works. Does the RewriteRule actually see anything after the query ? |
_________________ - Only registered users can see links on this board! Get registered or login! -
Need help? Only registered users can see links on this board! Get registered or login! |
|
|
 |
Raven

|
Posted:
Mon Feb 27, 2006 10:21 am |
|
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

|
Posted:
Mon Feb 27, 2006 10:48 am |
|
You might try
RewriteRule ^(.*)oursite\.com/modules\.php?name=Sections&op=viewarticle&artid=31$ newsite.com/index.html [R] |
|
|
|
 |
alexwise

|
Posted:
Mon Feb 27, 2006 11:35 am |
|
No, that's not working.
I dono what GT is ? |
|
|
|
 |
alexwise

|
Posted:
Mon Feb 27, 2006 12:09 pm |
|
oh hang on that's your distro pack yeah? if so then yes I am using it. |
|
|
|
 |
evaders99

|
Posted:
Mon Feb 27, 2006 7:44 pm |
|
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

|
Posted:
Wed Mar 01, 2006 8:12 am |
|
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. |
|
|
|
 |
|