Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 888
  • Last Modified:

.htaccess virtual subdomain with the creation

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
phparmy
Asked:
phparmy
1 Solution
 
jasonsbytesCommented:
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now