Reply
How to create a static URL to point to a PHP page?
Old 09-23-2007, 09:45 PM How to create a static URL to point to a PHP page?
Average Talker

Posts: 18
Name: Paul Burani
I've got a Products page on my client's PHP site which I want to make a hub for various link building efforts. Would also like it to show up as a clean looking URL such as www.laviolarestaurant.com/products.htm, instead of what it looks like now:
http://www.laviolarestaurant.com/php...&compcode=gene

Is there a way I can do this, with a redirect or some other measure which doesn't require rocket science? Can it be done without a major SEO sacrifice?

Thanks
PB
cavemanlawyer15 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 09-23-2007, 10:03 PM Re: How to create a static URL to point to a PHP page?
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
Converting Video For YouTube
Posts: 2,362
Name: Keith Marshall
Location: West Hartford, CT
This can be done using htaccess rewrite module:

Code:
RewriteEngine On
# This rule will convert: http://www.laviolarestaurant.com/product-59.html
# To: http://www.laviolarestaurant.com/php...&compcode=gene
RewriteRule ^product-([0-9]+).html$ php/mainSubPage\.php?linkid=$1&compcode=gene&%{QUERY_STRING} [L]
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 09-24-2007, 05:17 AM Re: How to create a static URL to point to a PHP page?
chrishirst's Avatar
Super Moderator

Posts: 16,452
Location: Blackpool. UK
Quote:
Can it be done without a major SEO sacrifice?
Any time URLs are redirected there will be SE disruption.

301 redirected & rewritten URLs take around 3 months to restabilise
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System | Bits & Bobs
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to How to create a static URL to point to a PHP page?
 

Thread Tools

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

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




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12652 seconds with 12 queries