Click here to Skip to main content
15,907,687 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
i want to create a url like abc.domainname.com

when user login, his detail page url must be create like abc.domainname.com
every time a name abc wil be chnaged.
Should i rewrite this type of url with use of .htaccess
Posted
Comments
Sergey Alexandrovich Kryukov 2-Apr-15 12:05pm    
What does it mean, "create an URL"? Assign some string value to something?
How are you going to access .htaccess. It is not supposed to be accessible from client side. Or are you using C# on server side with Apache?
—SA
Aarti Yadav 2-Apr-15 12:13pm    
no not using apache
Sergey Alexandrovich Kryukov 2-Apr-15 13:03pm    
No? But then what is it, exactly? What's the HTTP server?
.htaccess...
And why doing all that?
—SA
Aarti Yadav 2-Apr-15 12:13pm    
can we create this type of url through rewrite url
Richard Deeming 2-Apr-15 12:37pm    
You'll need to start by configuring a wildcard A record in your DNS to point *.domainname.com to your server.

How you do that will depend on who manages your DNS.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900