Solved

.htaccess virtual subdomain with the creation

Posted on 2009-07-01
1
846 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
1 Comment
 
LVL 17

Accepted Solution

by:
jasonsbytes earned 50 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

705 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now