How To create subdomain from .htaccess

Started on the old forum in September 2012 · view the original in the archive · old links redirect here

2 replies · 688 views · started 14 years ago · 1 min read

2 participants
Rrobyf Newbie · 9 posts #1

Hello masters, How To create subdomain from .htaccess..? please share it

Rrobyf Newbie · 9 posts #3

Sanju Kr wrote: RewriteEngine On RewriteCond %{HTTP_HOST} !^www.yourwebsite.com RewriteCond %{HTTP_HOST} ([^.]+).yourwebsite.com RewriteRule ^(.*)$ /path_to_your_site/httpdocs/work_out.php?url=%1

Thankz, I try

Write your reply now; next you create a free account (or sign in) and it is posted right away. 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