Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-06-2012, 02:47 PM   PM User | #1
mathceleb
Regular Coder

 
Join Date: Mar 2010
Posts: 235
Thanks: 39
Thanked 6 Times in 6 Posts
mathceleb is an unknown quantity at this point
301 redirect with unescaped characters

I'm trying to redirect a url with apostrophes in it.

Here is what I originally had:
Code:
RewriteRule ^top-12-classroom-management-dos-and-don%E2%80%99ts http://www.teachhub.com/top-12-class...-dos-and-donts [R=301,L]
From here, it says to add a 3rd parameter of "B"
http://httpd.apache.org/docs/2.2/rew...gs.html#flag_b

Then I tried this:
Code:
RewriteRule ^top-12-classroom-management-dos-and-don%E2%80%99ts http://www.teachhub.com/top-12-class...-dos-and-donts [R=301,L,B]
That crashed the site. How would I redirect these unescaped characters?
mathceleb is offline   Reply With Quote
Old 09-06-2012, 03:36 PM   PM User | #2
mathceleb
Regular Coder

 
Join Date: Mar 2010
Posts: 235
Thanks: 39
Thanked 6 Times in 6 Posts
mathceleb is an unknown quantity at this point
I tried this as well. This loads the url correctly, but then I get a message saying Firefox is not redirecting correctly?

Code:
RewriteRule ^top-12-classroom-management-dos-and-don(.*)ts http://www.teachhub.com/top-12-classroom-management-dos-and-donts [R=301,L]
Edit, this works if cache is cleared.

Last edited by mathceleb; 09-06-2012 at 03:50 PM..
mathceleb is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:12 AM.


Advertisement
Log in to turn off these ads.