how to make automatic subdomain script

Started on the old forum in May 2013 · view the original in the archive · old links redirect here

3 replies · 583 views · started 13 years ago · 1 min read

3 participants
charith7788 Developer · 51 posts #1

how to make a php script which makes automatic subdomain like username.sitename.com to redirect to sitename.com/index.php?username=$username in a unix cpanel 2 server

laro696 Developer · 205 posts #2

I think this is done with wildcard domains and mod_rewrite in .htaccess

charith7788 Developer · 51 posts #3

laro696 wrote: I think this is done with wildcard domains and mod_rewrite in .htaccess

i would like to know how to edit .htaccess pleas give me any simple example

Added after 13 minutes:

laro696 wrote: I think this is done with wildcard domains and mod_rewrite in .htaccess

hey thanks bro i have found the answers on google by your tips.

Lue_chin Developer · 107 posts #4

laro696 wrote: I think this is done with wildcard domains and mod_rewrite in .htaccess

Yes this will done with .htaccess i w=done this but i lost the file i do this for a client i will share the code when i found

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close