Welcome, guest!  |   Login  |  
Close

Login to Your Account


  |  » Forgot your password?
Join

Notices

Thread: Redirect html to php--2

 
Tools Search
  #1  
Old July 20th, 2004, 06:58 AM
Sgt. Joe Friday
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  
Old July 20th, 2004, 07:39 AM
Newbie
Join Date: January 17th, 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  
Old July 20th, 2004, 03:05 PM
Sgt. Joe Friday
Join Date: January 18th, 2005
Posts: 441
Thank you Jason, thanks very much.

Frank
__________________
"Just the facts, Ma'am." Sgt. Joe Friday, Dragnet
Join ABW to remove this sponsored message.
Reply

Tools Search
Search:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Temporary Offline Redirect - PHP Version Brian - ShareASale ShareASale 3 August 28th, 2004 11:01 AM
Redirect html to php frank3iii Programming / Datafeeds / Tools 5 July 19th, 2004 07:32 PM
Redirect Preference: javascript or html? tomslickaff Programming / Datafeeds / Tools 1 July 19th, 2004 05:20 PM
301 redirect: from dynamic to static html istvan Programming / Datafeeds / Tools 1 July 19th, 2004 03:07 PM
double redirect using php? moneybot Programming / Datafeeds / Tools 1 May 11th, 2002 06:26 AM

X

Welcome to ABestWeb.com

Create your username to jump into the discussion!

ABestWeb.com is the largest affiliate marketing community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?



Content Relevant URLs by vBSEO ©2011, Crawlability, Inc.