Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[PHP]Is it mod_rewrite?

Custom Title Activated
Loyal Member
Joined
Jun 28, 2007
Messages
2,986
Reaction score
3
I am unsure, never tried...I don't think it is mod_rewrite though.

Mod_rewrite is for the part AFTER the domain name, nothing IN the domain name.
 
Custom Title Activated
Loyal Member
Joined
Aug 8, 2004
Messages
3,892
Reaction score
20
I know for one you can make it a rule in Apache using the vhosts. Undoubtedly they have some variant of another on that :smile:
 
Experienced Elementalist
Joined
Apr 7, 2005
Messages
254
Reaction score
0
I know for one you can make it a rule in Apache using the vhosts. Undoubtedly they have some variant of another on that :smile:
Not only the vhost rules. Also you must to add the A-record into DNS zone or point this subdomain to server using A-record.
 
Experienced Elementalist
Joined
Apr 15, 2008
Messages
256
Reaction score
0
In my webhost for thamob.nl I can add unlimited sub-directories that'll show up like:
dir.thamob.nl
Does that work with some mod_rewrite rule?
If so, how?

Thanks,

EliteGM.
i remember reading it somewhere
BUT it won't actually be a subdomain, it will be like
any requests to hi.codingsource.co.cc will go to codingsource.co.cc/sub.php?id=hi
Open your .htaccess
and type:
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^(.*)$.codingsource.co.cc sub.php?id=$1 [NC]
something like that
 
Back
Top