PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
alien73
Involved
Involved


Joined: Sep 15, 2008
Posts: 352

PostPosted: Wed Feb 11, 2009 7:05 am Reply with quote Back to top

Misha wrote:
I actually did not mean to be rude, this happens to people for whom English is not a native language. I apologize if I did sound rudely.

Do you have anything constructive to say about the solution?


Dance-Y
View user's profile Send private message Visit poster's website
Misha
Worker
Worker


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

PostPosted: Wed Feb 11, 2009 10:29 am Reply with quote Back to top

Raven wrote:
Okay, try researching this page
Only registered users can see links on this board!
Get registered or login to the forums!
and look at this section.

'next|N' (next round)
Re-run the rewriting process (starting again with the first rewriting rule). This time, the URL to match is no longer the original URL, but rather the URL returned by the last rewriting rule. This corresponds to the Perl next command or the continue command in C. Use this flag to restart the rewriting process - to immediately go to the top of the loop. Be careful not to create an infinite loop!

Yep, thanks Gaylen, I tried that route, too. This and DPI. Both gave me 500 error Sad

Yet I found the solution this morning!

Using

RewriteRule ^content-11.html
Only registered users can see links on this board!
Get registered or login to the forums!
[R=301]

instead of

Redirect 301 /content-11.html
Only registered users can see links on this board!
Get registered or login to the forums!


seems to do the trick for me, no other changes needed! Cheers Groovy Dance-Y :clap:


Last edited by Misha on Wed Feb 11, 2009 10:42 am; edited 1 time in total
View user's profile Send private message Visit poster's website
Misha
Worker
Worker


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

PostPosted: Wed Feb 11, 2009 10:38 am Reply with quote Back to top

Raven wrote:
Alien73 -> Smack ROTFL

Misha! Long time my friend Cheers . Other than meeting Alien73 boxing how goes it?

Deleted by Raven after he discovered he had misread Misha's post - Sorry!

I'll try it again in the morning after some sleep!


Hi Gaylen,

Glad to talk to you, too Smile

Things are not bad, except for the business, that tanked with the economy, and now I am pretty much back to the drawing board...

BTW I am still running 2.02, did not get enough courage to start an upgrade with about 1000 files to modify, and was not able to outsource this...

Hope all is well with you, and ravennuke will survive the coming depression Smile

Noticed you are preparing a merchant version - much needed. Multitier mebership site with granular access rights and automatic handling of paypal, clickbank, paydotcom and merchant account payments, upgrades and cancellations - I am ready to pay for that, while I still have some money left Wink
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Wed Feb 11, 2009 11:31 am Reply with quote Back to top

Raven Nuke Merchant(tm) is a very exciting venture that Alien73 is leading. He can be a bit cranky when he has the flu, is overdosing on flu meds, and not sleeping killing me, but he's a great coder and, btw, guitarist!

Glad you found an answer to your problem. Btw, A 500 error means there's an error in the syntax of your .htaccess file.

Overall, nothing much has changed for me. Health issues continue but the Team is strong and we have plans that when they come to fruition will make RN stronger than ever.

Show your face more around here!
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
alien73
Involved
Involved


Joined: Sep 15, 2008
Posts: 352

PostPosted: Wed Feb 11, 2009 12:12 pm Reply with quote Back to top

Misha,

My apologies an glad you found a solution.

I wish you the very best with your business and upcoming adventures. Keep your head up high, have faith and it will all work out.
View user's profile Send private message Visit poster's website
Misha
Worker
Worker


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

PostPosted: Wed Feb 11, 2009 1:09 pm Reply with quote Back to top

LOL no problem Brian, we all have our days, myself included Smile

Looking forward to the merchant version...
View user's profile Send private message Visit poster's website
alien73
Involved
Involved


Joined: Sep 15, 2008
Posts: 352

PostPosted: Wed Feb 11, 2009 7:45 pm Reply with quote Back to top

Thanks Misha!
View user's profile Send private message Visit poster's website
spasticdonkey
RavenNuke(tm) Development Team


Joined: Dec 02, 2006
Posts: 1364
Location: Texas, USA

PostPosted: Tue Nov 08, 2011 11:33 am Reply with quote Back to top

To revisit this a couple years later, discovered the issue I was having was with the use of the Error Document module and these lines in htaccess

Code:
# -------------------------------------------
# To prevent a looping redirect anomaly we use this 3 line routine for 404 Page Not Found errors
# -------------------------------------------
# RewriteCond %{REQUEST_FILENAME} !-d
# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteRule (.*) /modules.php?name=ErrorDocuments&file=404&rs=$1 [NC,L,R]


all attempts at a redirect 301 would fail until I commented out the lines as above. not really sure what conditions will cause the "looping redirect anomaly" though?? Am I in store for other problems?
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

PostPosted: Wed Nov 09, 2011 1:42 am Reply with quote Back to top

I haven't read this entire thread but if it helps any..........
If the URL you are redirecting FROM does not exists, the 404 error will trigger first because htaccess carries out it's directives in sequence (top to bottom).

So if you need to use a 301 redirect, you should put this at the top of your htaccess file. This is one of the reasons I regularly moved my blocked IP list to the top of htaccess - no pointing wasting resources re-writing URL's if I'm banning them.
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum