User Tag List

Results 1 to 6 of 6
  1. #1

    any .htaccess wizard people on here?

    On the old site

    On the new site

    I want the first to redirect to the second, but it keeps going to 404 not found.

    Here's what the .htaccess looks like at the moment. What did I do wrong? What would fix it?
    (The first section is so that old domains (that I control) do proper 301s)

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^(.*) [NC]
    RewriteRule ^(.*)$$1 [R=301,L]
    RewriteCond %{HTTP_HOST} ^(.*) [NC]
    RewriteRule ^(.*)$$1 [R=301,L]
    RewriteCond %{HTTP_HOST} ^(.*) [NC]
    RewriteRule ^(.*)$$1 [R=301,L]
    RewriteCond %{HTTP_HOST} ^www\.bordersdown\.net [NC]
    RewriteRule ^(.*)$$1 [L,R=301]
    # RewriteCond %{HTTP_HOST} ^
    # RewriteRule (.*)$1 [R=301,L]

    Redirect 301 /review.php?platform=ngc&game=LegendOfZeldaTwilight Princess /content/843-Legend-of-Zelda-Twilight-Princess-Review-Nintendo-Gamecube
    Last edited by charlesr; 18-06-2017 at 07:56 PM.

  2. #2
    I don't know .htaccess but I know regex and those Rewrite rules "appear" to be saying (for example):


    Which I don't think is what you want?

  3. #3
    Like Brad said, it's just pattern matching/replacing.

    The bigger issue is that you have two completely different ways of referring to the articles
    /review.php?platform=ngc&game=LegendOfZeldaTwilight Princess

    Unless you make individual rules for each and every review and article, you're not going to have much luck.

  4. #4
    I'm only going to do it for the top 20 back links, so I won't need rules. Just going to do an exact rule for each one.

    The first section is working correctly. It makes sure that whether people put or just or, it always ends up as

    I just don't understand why my seemingly simple extra rule for the review url doesn't translate properly.

  5. #5
    You have a space in Twilight Princess?

    or maybe you need to escape the period (like we all do AMIRITE):
    /review\.php?platform=ngc&game=LegendOfZeldaTwilight Princess
    Last edited by kryss; 19-06-2017 at 04:37 PM.

  6. #6

    And the space is some weird forum glitch. It's literally not there when I paste it in to the forum and magically appears.


Posting Permissions

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