Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> ShortLinks/TegoNuke
Author Message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6793
Location: Ha Noi, Viet Nam

PostPosted: Mon Mar 12, 2007 2:02 am Reply with quote

Make sure you have done the following;
In nukeroot/rnconfig.php change
Code:
$tnsl_bUseShortLinks   = FALSE;

$tnsl_bAutoTapBlocks   = FALSE;
to
Code:
$tnsl_bUseShortLinks   = TRUE;

$tnsl_bAutoTapBlocks   = TRUE;


Make sure you have copied the code in Shortlinks.htaccess file to your main htaccess file

[Edited by montego: I just corrected the .htaccess reference a bit]
 
View user's profile Send private message Send e-mail
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9453
Location: Arizona

PostPosted: Mon Mar 12, 2007 6:45 am Reply with quote

Thanks! Yes, especially that last one gets folks more than 9 times out of 10. Smile

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Misha
Worker
Worker


Joined: Jul 30, 2006
Posts: 203
Location: McLean, VA

PostPosted: Mon Mar 12, 2007 10:54 am Reply with quote

mod_rewrite could be a reason, too Wink

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
montego
PostPosted: Tue Mar 13, 2007 6:06 am Reply with quote

Good point Misha. Raven worked with me long back on how to test that mod_rewrite was in fact working properly. Check out this thread here:
Only registered users can see links on this board! Get registered or login!

There were other tools provided by the GoogleTap/GTNG author to test mod_rewrite, but I found them to not work properly on my set up. So, the above approach should work every time with every set up.

There are several different approaches mentioned in the thread, so be sure to read it in its entirety.
 
myrtletrees
Involved
Involved


Joined: Sep 13, 2005
Posts: 259
Location: Cornfields of Indiana

PostPosted: Sat Apr 14, 2007 4:35 pm Reply with quote

Having a little issue with Shortlinks
I get this at the top left of every page
Code:
[nextGenFunction] = Present In Header

[nextGenName] = News (Main Module)
[nextGenPath] = GT File :: ShortLinks/GT-News.php :: Does Exist
[nextGenPath] = Using GT File :: ShortLinks/GT-News.php
[nextGenPath] = Using GT File :: ShortLinks/GTZ-PageTap.php
[nextGenPath] = GT File :: ShortLinks/GTZ-PageTap.php :: Does Exist


adn this above every block:
Code:
[nextGenFunction] = Present In Block

[nextGenPath] = GTB File Does Not Exist


EDIT!!!

Sorry, I figured it out. I had the debug statement set to TRUE. Sorry all!
 
View user's profile Send private message
montego
PostPosted: Sun Apr 15, 2007 1:54 pm Reply with quote

Nope, this is good. Now everyone who sees this will know and not have the same issue. Thanks!
 
montego
PostPosted: Sat Apr 21, 2007 7:42 am Reply with quote

In addition, if you still get 404 errors, check to make sure you have the following line in your .htaccess file above all the rewrite statements:

RewriteEngine on

If you still get 404 errors, you must find out if your host has mod_rewrite active. The following thread will help you with that:
Only registered users can see links on this board! Get registered or login!
 
r1_dave
New Member
New Member


Joined: Jun 15, 2007
Posts: 1

PostPosted: Sun Jun 17, 2007 3:25 am Reply with quote

Lo all

I have been spend hours to find out why it wasn't working for me. Mad
After a few miniutes back to Apache school overhere Only registered users can see links on this board! Get registered or login!

I added this line to my .htacces

Code:
RewriteBase /


Hope i help somebody whit this info..

Greetzz
 
View user's profile Send private message
montego
PostPosted: Mon Jun 18, 2007 7:22 am Reply with quote

r1_dave, thank you for this. I have never seen this needed (until now) at the root level, but this is also useful if one has troubles with subdomains. The "/" may be replaced with any path from the web root.
 
fkelly
Former Moderator in Good Standing


Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY

PostPosted: Wed Oct 03, 2007 2:36 pm Reply with quote

Quote:
Make sure you have copied the code in Shortlinks htaccess file to your main htaccess file


Well this had me puzzled! The only thing in the shortlinks htaccess was deny from all!!?? How could this fix anything? Problem was I looked in my nukeroot/shortlinks/.htaccess file. Logical eh? Gotta look in nukeroot/ShortLinks.htaccess. That's where the treasure trove of rewrites lies.
 
View user's profile Send private message Visit poster's website
montego
PostPosted: Wed Oct 03, 2007 9:31 pm Reply with quote

Ok... I fixed "G"s original post just a bit... Wink
 
redmanu
New Member
New Member


Joined: Nov 06, 2008
Posts: 13

PostPosted: Sun Nov 30, 2008 7:36 am Reply with quote

Thx r1_dave! Works for me! Cheers


r1_dave wrote:
Lo all

I have been spend hours to find out why it wasn't working for me. Mad
After a few miniutes back to Apache school overhere Only registered users can see links on this board! Get registered or login!

I added this line to my .htacces

Code:
RewriteBase /


Hope i help somebody whit this info..

Greetzz
 
View user's profile Send private message Visit poster's website
myrtletrees
PostPosted: Wed May 06, 2009 1:40 pm Reply with quote

I'm back.

I'm starting a new install of Raven Nuke today.
I have followed this topic because I am having a problem with Shortlinks. All pages generate 404 errors.
I have all the shortlink.htaccess info in my main .htacces file. I also added
RewriteEngine on
RewriteBase /
Above all Rewrite rules.

I checked my server that is running PHP5 and Apache and mod-rewrite is enabled.

Any other ideas?

EDIT:
FIXED!

I added
RewriteBase /nuke
to my .htaccess since my nuke site does not run in my servers web root but runs in a subdirectory named nuke. Hope this helps others.
 
rickleigh
Worker
Worker


Joined: Jan 06, 2009
Posts: 183

PostPosted: Mon Oct 26, 2009 10:59 am Reply with quote

My shortlinks are not auto rewriting in the address bar. But, when I type the shortlink in the bar my pages show up fine.

I have all rewrites from the sample pasted in my .htacces file and all settings in the RNconfig file set to true that need to be.

_________________
Thanks,
Rick Leigh 
View user's profile Send private message
Guardian2003
PostPosted: Mon Oct 26, 2009 11:14 am Reply with quote

Re upload your rnconfig.php file again after making sure the settings are set to true.
The fact that if you type a shortened url in the browser bars suggests the htaccess file is ok and that your server has mod_rewrite turned on so thats the only thing I can think of.
 
montego
PostPosted: Mon Oct 26, 2009 9:20 pm Reply with quote

Also, make sure you uploaded the ShortLinks directory...
 
rickleigh
PostPosted: Sat Oct 31, 2009 11:07 pm Reply with quote

It has something to do with my autothemes theme. When I test with a regular nuke theme, the short links work fine. I found this info at Autotheme's website.
Quote:
OK, I have a fix for the links. Let me know if it helps the other problems.

Comment out: 'modules/AutoTheme/includes/atExtended' line 81

change:
return die();

to:
//return die();

-Shawn

from link: Only registered users can see links on this board! Get registered or login!

When I do this edit, it does allow the short links to work. But if I go to save a new block setup to the site, my browser errors out. Take the edit out; my blocks save fine.

Any ideas?
 
montego
PostPosted: Tue Nov 03, 2009 6:37 am Reply with quote

rickleigh, I don't use Autotheme so even though I am the developer for ShortLinks, I think it will be best for you to ask them directly. The bottom line is that the hooks within header.php and footer.php for ShortLinks have to process unabated and it looks like they may be overriding those? Not sure.
 
rickleigh
PostPosted: Tue Nov 03, 2009 3:31 pm Reply with quote

montego wrote:
rickleigh, I don't use Autotheme so even though I am the developer for ShortLinks, I think it will be best for you to ask them directly. The bottom line is that the hooks within header.php and footer.php for ShortLinks have to process unabated and it looks like they may be overriding those? Not sure.


I have tried to contact them, but with no luck of a response Sad
 
rickleigh
PostPosted: Fri Nov 06, 2009 5:03 pm Reply with quote

Is Autothemes DEAD? I can't seem to get a reply on my issues on their site Mad
 
bdmdesign
Worker
Worker


Joined: May 11, 2009
Posts: 154
Location: Winsen/Luhe; Germany

PostPosted: Mon Nov 09, 2009 10:56 am Reply with quote

Hello @ll

I have a rewrite problem, too.

its working fine, but my shop rules are not writen ?!?

All others works.

My Rules:

Code:


# osc-Cart4nuke 0.0.1
RewriteRule ^catalog.html modules.php?name=catalog [L]
RewriteRule ^catalog.html modules.php?name=catalog&file=index [L]
RewriteRule ^catalog-account.html modules.php?name=catalog&file=account [L]
RewriteRule ^catalog-account-history.html modules.php?name=catalog&file=account_history [L]
RewriteRule ^catalog-account-history-info.html modules.php?name=catalog&file=account_history_info&$2=$3 [L]
RewriteRule ^catalog-shopping-cart.html modules.php?name=catalog&file=shopping_cart [L]


Best Regards

Peter

Edit: I forgotten the GT File.

_________________
CMS-Version: pragmaMx 1.12.3.1.33.4.14 :: PHP-Version: 5.3.14 :: MySQL-Version: 5.5.23-log :: Server-Version: Apache/2.2.21 (Linux/SUSE)
Projekt: osc4pragmaMx- 2.3.2 in development 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> ShortLinks/TegoNuke

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 ©