Solved

.htaccess virtual subdomain with the creation

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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Suggested Solutions

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 you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

734 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