Results 1 to 3 of 3
  1. #1
    Sgt. Joe Friday frank3iii's Avatar
    Join Date
    January 18th, 2005
    Posts
    441
    I have a mall site which is almost all hand coded html. Within that site I have a directory that contains 2000 pages of WebMerge generated html.

    These pages have been indexed by the search engines and produce (some) traffic.

    I have taken the original datafeed into MySql and will produce dynamic pages with PHP. The page names will remain the same after the conversion to php.

    My current links look like this:
    /widgets/product.html

    After the change the links will look like this:
    /widgets/product.php

    How do I redirect the traffic and spiders to the PHP pages?

    Frank
    "Just the facts, Ma'am." Sgt. Joe Friday, Dragnet

  2. #2
    Newbie
    Join Date
    January 18th, 2005
    Posts
    13
    Frank,

    As I mentioned in your other post, you can add the following to your .htaccess file within the 'widgets' directory:

    <pre class="ip-ubbcode-code-pre">RewriteEngine on
    RewriteBase /widgets/
    RewriteRule ^(.*).html$ $1.php</pre>
    This will automatically redirect all requests for *.html to *.php on the server side. This means that all traffic from search engines will be redirected to the correct page.

    Jason Weinstein
    http://www.MaximumEdge.com/

  3. #3
    Sgt. Joe Friday frank3iii's Avatar
    Join Date
    January 18th, 2005
    Posts
    441
    Thank you Jason, thanks very much.

    Frank
    "Just the facts, Ma'am." Sgt. Joe Friday, Dragnet

  4. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Help With - PHP REDIRECT
    By AddHandler in forum Programming / Datafeeds / Tools
    Replies: 3
    Last Post: March 25th, 2005, 04:43 PM
  2. How to Do an HTML Redirect Without Bad Consequences
    By Cheesehead in forum Search Engine Optimization
    Replies: 4
    Last Post: November 21st, 2004, 11:59 PM
  3. Redirect html to php
    By frank3iii in forum Programming / Datafeeds / Tools
    Replies: 5
    Last Post: July 19th, 2004, 08:32 PM
  4. Redirect Preference: javascript or html?
    By tomslickaff in forum Programming / Datafeeds / Tools
    Replies: 1
    Last Post: July 19th, 2004, 06:20 PM
  5. 301 redirect: from dynamic to static html
    By istvan in forum Programming / Datafeeds / Tools
    Replies: 1
    Last Post: July 19th, 2004, 04:07 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
  •