homepage Welcome to WebmasterWorld Guest from 54.211.73.232
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Helpp with wildcard Subdomain
hassanzobeen



 
Msg#: 4359995 posted 3:25 pm on Sep 8, 2011 (gmt 0)

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]

 

lucy24

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



 
Msg#: 4359995 posted 7:32 pm on Sep 8, 2011 (gmt 0)

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.

hassanzobeen



 
Msg#: 4359995 posted 11:32 pm on Sep 8, 2011 (gmt 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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved