Need someone to insert some 301 redirects

Discussion in 'PHP' started by paulinmargarita, Dec 17, 2006.

  1. #1
    I have just had a new site built in php.
    My site at the moment is html and is popular so I don't want to lose it.
    I need someone to insert 301's for me on every page, I don't want to risk doing
    it on my own in case of a misshap.
    PM please if anyone can offer this service.

    Thank You
     
    paulinmargarita, Dec 17, 2006 IP
  2. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #2
    They don't go on the page.

    They are created in the cPanel or other control panel that you are using.

    I can tell you how for free. Doing it for you we would have to discuss.
     
    Colbyt, Dec 18, 2006 IP
  3. GeorgeB.

    GeorgeB. Notable Member

    Messages:
    5,695
    Likes Received:
    288
    Best Answers:
    0
    Trophy Points:
    280
    #3
    Are you just converting them from HTML to php or something?


    Give more details on what exactly it is you need.
     
    GeorgeB., Dec 18, 2006 IP
  4. rodney88

    rodney88 Guest

    Messages:
    480
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    0
    #4
    mod rewrite would be easiest - if its just the extension that's changed you can automatically 301 redirect every .html page to its .php page?
     
    rodney88, Dec 19, 2006 IP
  5. sc0ttish

    sc0ttish Peon

    Messages:
    183
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Sorry to hijack the post but i have the same question,

    I'm in the process of re doing my site and going to use .php instead of .htm / .html extentions. (some of my current pages use the .htm and some have .html.............will it make a difference????)

    i've never used mod rewrite before and have no idea of where to start, the site have about 800+ pages and its going to take long enough to do the redesign and dont want to have to sit down and do 301 redirects on cpanel afterwards.

    How easy is it to set up mod rewrite?
     
    sc0ttish, Dec 19, 2006 IP
  6. angielski

    angielski Peon

    Messages:
    57
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    create htaccess. file

    #start - copy text below
    RewriteEngine On

    RewriteRule (.*)\.html $1.php [L]
    RewriteRule (.*)\.htm $1.php [L]

    #last line should be empty

    should be working
     
    angielski, Dec 19, 2006 IP
  7. rodney88

    rodney88 Guest

    Messages:
    480
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Be careful with that kind of rewriting.. not only will search engines not transfer your pages rankings to the php pages, you'll might also get penalized for duplicate content. To avoid that, remember to put in the R=301 flag.

    Unless you want to keep the appearance of all pages being .html but behind the scenes point to the php scripts - i.e. once you've redone the site, you continue to use .html in all the links so the .php pages are never accessed directly?
     
    rodney88, Dec 19, 2006 IP