Grails + rewrite

Splash Forums Rewrite Users Grails + rewrite

Tagged: 

This topic contains 4 replies, has 2 voices, and was last updated by  arcturus 52 minutes ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #27541

    arcturus
    Participant

    Hi forum
    here i am once again after 9 months passed.
    my question is : can i implement rewrite with grails ? i’m using 2.2.5 version
    if yes. second question is how to keep the same url when the subdomain changes?

    Example : I open the browser, in the URL bar I type in
    https://www.mydomain.com

    This should serve a pages on another domain
    https://subdomain.example.com/data

    #27542

    my question is : can i implement rewrite with grails ? iā€™m using 2.2.5 version

    Rewrite should work with any frameworks which uses the Servlet API. So my guess is: Yes, it will work.

    if yes. second question is how to keep the same url when the subdomain changes?

    You cannot simply change the hostname in the address bar. This would be a great way to do phishing. šŸ˜‰

    AFAIK there is a Proxy rule in Rewrite which basically acts as a reverse proxy. But I think in most cases it would be simpler to just configure nginx or httpd as a reverse proxy instead.

    #27543

    arcturus
    Participant

    Hi, thanks a lot for answering my question.

    i’m not gonna change the whole hostname. i’m trying to keep the same domain whenever the subdomains changes.

    let says that i have a website with dns : http://www.domain.com and some subdomains like http://www.sub1.domain.com, sub2.domain.com etc …

    i would like so to stay always in http://www.domain.com whenever i change the subdomains

    i need something like : wwww.{sub}.domain.com appears as http://www.domain.com

    PS: can this post in stackoverflow answered by Mr @lincoln helps me in my case ?
    have a look at it : http://stackoverflow.com/questions/27610925/ocpsoft-rewrite-jsf-subdomain

    #27544

    I actually don’t understand what you mean with “keep the same domain whenever the subdomains changes”.

    The hostname part of the URL is actually the server to which the browser connects. So if you change the hostname, the browser will also connect to the new server.

    #27545

    arcturus
    Participant

    exactly i want to connect to another server.
    simple example : in url bar i type http://www.facebook.com, this will redirect me to http://www.google.com but in the url bar should stay http://www.facebook.com instead of http://www.facebook.com

    In godaddy there’s an option forward with masking. I don’t want to do the masking but will only do the forwarding. And I want to do the masking in ocp soft rewrite framework.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

Comments are closed.