subdomain .htaccess

Started on the old forum in February 2011 · view the original in the archive · old links redirect here

6 replies · 720 views · started 15 years ago · 1 min read

6 participants
Jerson Developer · 70 posts #1

is this posible using .htaccess? From example.com/user to user.example.com? Is it?

frostymarvelous Senior · 266 posts #3

He will need to define the htaccess mapping as well. To map subdomain to folder.

Perfection comes at a cost

I accept liberty!

Mysterio Lead · 630 posts #4

Btw, guys, is it possible to make something like: whatever.domain.com to domain.com/whatever even if the subdomain whatever.domain.com is not registered?

mysterio.al - programming is a functional art

subzero Super moderator Fellow · 3,954 posts #6

Make a folder *

then add

RewriteEngine On
RewriteCond %{REQUEST_URI}!^/sd_
RewriteCond %{HTTP_HOST}!^www\.example\.com$ [NC]
RewriteCond %{HTTP_HOST} ^([^.]+)\.example\.com
RewriteRule (.*) /%1/$1 [L]

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

warfrek Junior · 44 posts #7

if the d0main is n0t registered then its useless.

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