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
alien73
Involved
Involved



Joined: Sep 15, 2008
Posts: 352

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

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: 205
Location: McLean, VA

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

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 Sad

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! Cheers Groovy Dance-Y :clap:

_________________
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 
View user's profile Send private message Visit poster's website
Misha







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

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



Joined: Aug 27, 2002
Posts: 17088

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

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
alien73







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

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







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

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

Looking forward to the merchant version...
 
alien73







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

Thanks Misha!
 
spasticdonkey
RavenNuke(tm) Development Team



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

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

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 Visit poster's website
Guardian2003
Site Admin



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

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

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