Affiliate Marketing
Forum Search


Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 01-09-06
Registered User
 
Join Date: Dec 2003
Location: Leicestershire
Posts: 103
Thanks: 1
Thanked 1 Time in 1 Post
holmes is an unknown quantity at this point
  301 ONE dynamic URL to ONE static URL without mod_rewrite

I'm working on a server without mod_rewrite and need just one dynamic page to redirect to a static one like...

http://www.mydomain.com/product.php?id=PO

301 to

http://www.mydomain.com/po.php

Any ideas? i'm stuck!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-09-06
Super Moderator
 
Join Date: Aug 2003
Posts: 2,451
Thanks: 0
Thanked 0 Times in 0 Posts
Rich is an unknown quantity at this point
Make product.php read as follows
PHP Code:
<?php
header
($_SERVER["SERVER_PROTOCOL"].' 301 Moved');
header('Location: http://www.mydomain.com/'.strtolower($_GET['id']).'.php');
?>
and that should work, or atleast be astaart for you to work out what you need.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-09-06
Registered User
 
Join Date: Dec 2003
Location: Leicestershire
Posts: 103
Thanks: 1
Thanked 1 Time in 1 Post
holmes is an unknown quantity at this point
Thanks that works a treat, didn't even consider using PHP.

Dave
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP dynamic to static pages Leeky Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 3 12-09-05 09:23 PM
extension for dynamic page to stay static? ukyellowpage Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 0 26-02-05 08:30 PM
Do dynamic pages use same bandwidth as static? Elaine Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 4 23-08-04 11:52 AM
Inculde a static version of a dynamic php page scifind Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 4 16-07-04 02:29 PM
static pages v dynamic pages Elaine Search Engine Strategies 5 25-05-04 12:05 PM


Affiliate Marketing RSS Feeds - Contact Us - Affiliate Marketing - Archive - Privacy Statement - Top

Content Relevant URLs by vBSEO 3.2.0 RC7