Welcome to WebmasterWorld Guest from 54.211.136.250

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Helpp with wildcard Subdomain

   
3:25 pm on Sep 8, 2011 (gmt 0)

5+ Year Member



Hello
My htaccess generating urls in directoru
e.g.

mysite.com/classified/guide/services/babysitter-nanny

but I want to use it like

classified.mysite.com/guide/services/babysitter-nanny


is there any one who can solve my this problem please. I hve attached my htaccess code down

Code here
# Classified
RewriteRule ^classified/([a-zA-Z0-9-]+).(html|htm)$ classified/detail.php?classified=$1 [L]
RewriteRule ^classified/guide/([a-zA-Z0-9-]+)/?([a-zA-Z0-9-]+)?$ classified/results.php?category1=$1&category2=$2 [L]
RewriteRule ^classified/location/([a-zA-Z0-9-]+)/?([a-zA-Z0-9-]+)?/?([a-zA-Z0-9-]+)?$ classified/results.php?country=$1&state=$2&region=$3 [L]
7:32 pm on Sep 8, 2011 (gmt 0)

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month



Before anything else: does classified.mysite.com actually exist? You can't just create subdomains willy-nilly; they need a DNS just like full-blown domains.
11:32 pm on Sep 8, 2011 (gmt 0)

5+ Year Member



no classified.mysite.com is not created yet
but wildcard subdomain option is enabled at my hosting so we just have to setup a wild card sub domain