Questions tagged [wildcard-subdomain]

Wildcard subdomains are useful to allow end users of a domain-based multisite network to create new sites on demand. In this type of network each new site has its own subdomain, and the wildcard configuration means that those subdomains do not have to be configured individually.

456 questions
0
votes
1 answer

.htaccess conditional statement

I want to rewrite my urls to more seo urls using wildcard sub-domains and I am unable to write htaccess conditions and hoping to get some help with it. I have this url: http://learntipsandtricks.com/blog/c/magento I want to rewrite as:…
Damodar Bashyal
  • 931
  • 3
  • 17
  • 31
0
votes
1 answer

Wildcard subdomains with .htaccess (Codeigniter)

In my current project, I was asked to provide blog feature for every registered user, that means when you register, you can automatically write blogs on site. This was easily done, however, I was instructed to use URLs in format like…
0
votes
3 answers

wilcard DNS and Virtual subdomains?

I just don't get it.. I'm planning to get scenario like this: username.mydomain.com = mydomain.com/user.php?user=username Well, let's not go that far yet because this wildcard DNS is making me insane!! :/ I have DNS record * A my-ip-address And I…
Marko
  • 1,565
  • 2
  • 13
  • 20
0
votes
1 answer

htaccess - Remove file extensions and force subdomain

If a subdomain isn't in my URL (or its "www") I'm trying to force an underscore as the subdomain. I went round in circles yesterday trying to understand this, here's what I have so far:- Rule #1. Remove file extensions - works, until I add rule 2 to…
Will
  • 309
  • 1
  • 4
  • 10
0
votes
1 answer

Apache redirect subdomain to folder, keep parameters

I have this code in .htaccess : RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !\.(css|gif|ico|jpg|js|png|swf|txt)$ # If empty subdomain, replace with "www" RewriteCond %{HTTP_HOST} ^example.com$…
0
votes
2 answers

Redirecting wildcard sub-domains ISAPI 2

I'm trying to redirect all wildcard sub-domains to example.com via ISAPI Rewrite 2. e.g. qqqq.example.com 301 redirects to example.com Using other info here on Stack I've got the following to redirect www to non-www: RewriteEngine on RewriteCond…
0
votes
2 answers

Multi-level Subdomains in Rails

Can we have multi-level subdomain in Rails like this? sub1.sub2.mysite.com
Saim
  • 2,471
  • 5
  • 30
  • 43
0
votes
2 answers

Heroku subdomain DNS

I have a Rails app with a custom domain and wildcard subdomains hosted on Heroku (Cedar). Let's call it https://mysite.com. If a user goes to, for instance, https://bobcat.mysite.com, the Rails app is configured to serve only the data relating to…
snowangel
  • 3,452
  • 3
  • 29
  • 72
0
votes
2 answers

.htaccess unmasked/forced wildcard subdomain redirect

I want to edit the .htaccess file to create an unmasked wildcard redirect of all subdomains to the main www subdomain. i.e. *.domain.com => www.domain.com e.g. www.example.domain.com => www.domain.com When the person types in www.example.domain.com…
0
votes
1 answer

IIS7 wildcard mapping for dynamic subdomains

I have this setup in IIS: 1- Default website 2- Site1: binding test.example.com:10.10.10.10:80 I want to have *.test.example.com to point to Site1 so if I go to test1.test.example.com I will see the application on Site1, note that I have in the…
moeezed
  • 65
  • 5
0
votes
1 answer

How to create a web application in .Net that generates a sub-domain URL for each user of the website at run time

Hello Technical People, I am planning to create a Web Application using SaaS model . For that, I want to develop application in such a way that the application should create a Unique sub-domain URL for each of the website user at run time like: if…
Rupendra
  • 608
  • 2
  • 11
  • 42
0
votes
1 answer

API versioning using Wildcard Sub-domains

I don't want to add any versioning logic to the API. If I use Wildcard Sub-domains and regex in nginx.conf to determine subdomain part, I can route the request to specific directory. Here is the config: server { listen 80; …
Roman Newaza
  • 11,405
  • 11
  • 58
  • 89
0
votes
1 answer

Trouble redirecting subdomains to a folder

I have got this working: RewriteEngine on RewriteCond %{HTTP_HOST} ^([^\.]+)\.domain\.co\.uk RewriteRule ^(.*) http://domain.co.uk/%1 [L] So it will redirect test.domain.co.uk to test.domain.co.uk/test However, I would like it so that it changes…
Ian Jamieson
  • 4,376
  • 2
  • 35
  • 55
0
votes
1 answer

redirect public_html folder

I have two domain name www.domain.com www.parked.com I have 3 folders inside the public_html (www) folder folder1 folder2 folder3 i want a wildcard using htaccess code to redirect the domain name to folder2 so it be like this: www.domain.com/ …
0
votes
2 answers

Apache: Redirect dynamic subdomains to different ip's

I have a application with dynamic subdomains that should be redirected to different servers depending on a part of the subdomain. Example (anything means whateveryouwant, a dynamic name): example.com --> server1 anything.example.com -->…
Martin