Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Webpage not available after converting Query String paramter |
|
Author |
|
KroKite
Joined: 17 Mar 2014 Posts: 2 Location: India
|
Posted: Mon 17 Mar '14 17:22 Post subject: Webpage not available after converting Query String paramter |
|
|
I have converted URL query to sub-domain, but web-page returns webpage not available.
This is my code in .htaccess, Do i have to do any more settings in apache configuration file.
Code: | RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?example\.com$ [NC]
RewriteCond %{QUERY_STRING} ^user=([^&]+) [NC]
RewriteRule ^(index\.php)$ http://%1.example.com/$1? [L,NC,R=301] |
Kindly Help. Thanks |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Wed 19 Mar '14 13:18 Post subject: |
|
|
- Did you load the rewrite module?
- DNS works?
- vhost works?
|
|
Back to top |
|
KroKite
Joined: 17 Mar 2014 Posts: 2 Location: India
|
Posted: Wed 19 Mar '14 17:40 Post subject: RE: Creating Dynamic Sub-domain with Query String of URL |
|
|
James Blond wrote: |
- Did you load the rewrite module?
|
Yes, I have loaded the rewrite module.
James Blond wrote: |
- DNS works?
- vhost works?
|
Do i need to add DNS for each sub-domain, that need to be created, can't i have something like "wildcard (*)", that will do automatically.
Thanks |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Thu 20 Mar '14 18:30 Post subject: |
|
|
Yes you can have a wild cards DNS like *.example.com
Can you ping that domain you want to reach? |
|
Back to top |
|
|
|
|
|
|