htaccess 301 redirect question

Discussion in 'Site & Server Administration' started by silvastar, May 28, 2011.

  1. #1
    I'm updating an older site to a new site and wanted to ask about a 301 redirect.

    I normally use this code:
    Redirect 301 /oldpage.php http://www.yoururl.com/newpage.php

    BUT

    the current site doesn't seem to have any extension as in oldpage.php.

    Question: How do I find out what the .php or .html is for each page on the existing site so I can ensure the 301 is redirecting correctly?
    Thanks.
     
    silvastar, May 28, 2011 IP
  2. thejimy

    thejimy Greenhorn

    Messages:
    9
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    13
    #2
    An URL doesn't need necessarily to have an extension. There are applications that use rewritten URLs in the style /category/page and rewrite it internal to something like index.php?c=category&p=page, where /category/page.html might not work. So, maybe you should try without any extension at all and see if that works.
     
    thejimy, May 29, 2011 IP