Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

.htaccess virtual subdomain with the creation

Posted on 2009-07-01
1
Medium Priority
?
875 Views
Last Modified: 2012-05-07
English messages;

First, excuse my not have a good English. So do not look at my flaws. The same message Turkish knows you expect of a olduunuda'll write in Turkish.

example.com / deneme.php? inc =Ramadan
 this link.
ramazan.example.com
 with htaccess as I want to print. I see different messages in this forum but when Server Default page template is applied. Normally the screen, "Ramadan" print is required

"Root server operating system I'm using openSuse 10.2"

Türkçe Mesaj;
Öncelikle kusura bakmay1n iyi bir ingilizceye sahip deilim. Bu yüzden kusuruma bakmay1n. Aran1zda türkçe bilenlerin olduunuda umarak ayn1 mesaj1 birde türkçe yazaca1m.

example.com/deneme.php?inc=ramazan
 bu linki .htaccess ile
ramazan.example.com
_eklinde yazd1rmak istiyorum. Forumda farkl1 mesajlar gördüm fakat uygulad11mda Server Default page _ablonu ç1k1yor. Normalde ekrana "ramazan" yazd1rmas1 gerekiyor

"Root server kullan1yorum i_letim sistemi openSuse 10.2"
0
Comment
Question by:phparmy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 17

Accepted Solution

by:
jasonsbytes earned 200 total points
ID: 24754347
You need to allow wildcard dns *.example.com in your DNS by creating a wildcard A record that points to your IP.

Then in .htaccess you need something like:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^subdomain\.example\.com
RewriteRule ^(.*)$ http://www.example.com/deneme.php?inc=$1 [R=permanent,L]
0

Featured Post

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question