iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-09-2005, 05:16 PM
freehits's Avatar
WebProWorld Veteran
 
Join Date: Sep 2004
Location: Posse's On Broadway
Posts: 952
freehits RepRank 1
Default some simple MOD rewrite help - like its ever simple

RewriteEngine On
RewriteRule ^featured/home-(.*).html$ feature.php?prop_number=$1 [L,NC]
RewriteRule ^index.html$ index.php [L,NC]
RewriteRule ^contact.html$ contact.php [L,NC]
RewriteRule ^homesinhuntersville.html$ homesinhuntersville.php [L,NC]
RewriteRule ^buynow.html$ buynow.php [L,NC]
RewriteRule ^exchange.html$ exchange.php [L,NC]

I have a site which uses this very simple MOD to change php to html is some cases, and pass a variable in some cases as you see.

I would like to adapt this to catch incoming subdomain requests.

would like to pass incoming requests that fit this bill

(SUBDOMAINNAME).mysite.com/one-two-three.html

rewritten to

http://www.mysite.com/targetpage.php...&one&two&three

looking for a good approach in a topic that has lots of misleading information going around, much of which makes alot of assumptions.
Reply With Quote
  #2 (permalink)  
Old 05-18-2005, 01:25 AM
WebProWorld MVP
WebProWorld MVP
 
Join Date: Jul 2004
Location: Omaha
Posts: 2,714
brian.mark RepRank 3brian.mark RepRank 3
Default I've tried that.

I've tried that in the past, and it seems like it ends up doing a redirect if the domain is different instead of just doing a rewrite. I did some searching and didn't find any examples that worked.

Brian.
__________________
ToolBarn.com, an Internet Retailer Top 500 and Inc. 500 Company | Tool Parts | Pet Supplies
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum

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



All times are GMT -4. The time now is 02:05 AM.



Search Engine Optimization by vBSEO 3.3.0