SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Jun 2013
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how redirect the url main domain to subdomain using javascript

    I developing one website like quikr.com. In mysite i list out city list then while click the city its goes to subdomain like cityname.mywebsite.com. so how to achieve this using javascript. so share your ideas and suggestions.

  2. #2
    Non-Member
    Join Date
    Jul 2013
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sounds like you don't need JS. Just click it and go to the site. If you need different then you will have to explain it that way.

  3. #3
    SitePoint Member
    Join Date
    Jun 2013
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Jezabel View Post
    Sounds like you don't need JS. Just click it and go to the site. If you need different then you will have to explain it that way.
    Thanks for reply. I am developing one classifieds site so i want know structure like, while click location it goes to subdomain(chennai.mydomain.com) and display contents regarding subdomain. so i created subdomain for all cities and redirect to cityname.mydomain.com. i am in struggle in landing page of after loading subdomain url because it shown individual page for each subdomain. share your ideas and suggestion.

  4. #4
    Non-Member
    Join Date
    Jul 2013
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm sorry. Tried as I might. I couldn't understand the question again.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •