Author |
Message |
alien73
Involved


Joined: Sep 15, 2008
Posts: 352
|
Posted:
Wed Feb 11, 2009 7:05 am |
|
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? |
 |
|
|
|
 |
Misha
Worker


Joined: Jul 30, 2006
Posts: 205
Location: McLean, VA
|
Posted:
Wed Feb 11, 2009 10:29 am |
|
Raven wrote: | Okay, try researching this page http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html 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 http://XXXXX.com/33-gas-saving-tips.html [R=301]
instead of
Redirect 301 /content-11.html http://XXXXX.com/33-gas-saving-tips.html
seems to do the trick for me, no other changes needed!  |
_________________ Only registered users can see links on this board! Get registered or login!
Last edited by Misha on Wed Feb 11, 2009 10:42 am; edited 1 time in total |
|
|
 |
Misha

|
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  |
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
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.
Show your face more around here! |
|
|
|
 |
alien73

|
Posted:
Wed Feb 11, 2009 12:12 pm |
|
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. |
|
|
|
 |
Misha

|
Posted:
Wed Feb 11, 2009 1:09 pm |
|
LOL no problem Brian, we all have our days, myself included
Looking forward to the merchant version... |
|
|
|
 |
alien73

|
Posted:
Wed Feb 11, 2009 7:45 pm |
|
|
|
 |
spasticdonkey
RavenNuke(tm) Development Team

Joined: Dec 02, 2006
Posts: 1693
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? |
|
|
|
 |
Guardian2003
Site Admin

Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
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. |
|
|
|
 |
|