Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Mar 2010
    Posts
    235
    Thanks
    39
    Thanked 6 Times in 6 Posts

    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?

  • #2
    Regular Coder
    Join Date
    Mar 2010
    Posts
    235
    Thanks
    39
    Thanked 6 Times in 6 Posts
    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 04:50 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •