Joined: Jul 30, 2006 Posts: 203 Location: McLean, VA
Posted:
Wed Feb 11, 2009 10:29 am
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
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!
Last edited by Misha on Wed Feb 11, 2009 10:42 am; edited 1 time in total
Joined: Jul 30, 2006 Posts: 203 Location: McLean, VA
Posted:
Wed Feb 11, 2009 10:38 am
Raven wrote:
Alien73 ->
Misha! Long time my friend . Other than meeting Alien73 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
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
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
Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
Posted:
Wed Feb 11, 2009 11:31 am
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 , 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.
Joined: Dec 02, 2006 Posts: 1364 Location: Texas, USA
Posted:
Tue Nov 08, 2011 11:33 am
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?
Joined: Aug 28, 2003 Posts: 6373 Location: Vsetin, Czech Republic
Posted:
Wed Nov 09, 2011 1:42 am
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 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