Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Helpp with wildcard Subdomain

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

New User

5+ Year Member

joined:May 29, 2010
posts: 29
votes: 0

My htaccess generating urls in directoru


but I want to use it like


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 Sept 8, 2011 (gmt 0)

Senior Member from US 

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

joined:Apr 9, 2011
votes: 412

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 Sept 8, 2011 (gmt 0)

New User

5+ Year Member

joined:May 29, 2010
posts: 29
votes: 0

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

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members