Solved

.htaccess virtual subdomain with the creation

Posted on 2009-07-01
1
852 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
XAMPP 14 44
Use of SSL Certificates - http vs https 3 75
.htaccess file settings 4 58
WordPress website error - Unable to access website. 5 51
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

776 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