Member_2_5912282
asked on
rewrite rule
hi all,
I have requirement where if I have entered URL it needs to rewrite to /login.html and once login done it needs to again rewrite to /test/home.html
could someone provide rewrite condition or rules for this.?
I have requirement where if I have entered URL it needs to rewrite to /login.html and once login done it needs to again rewrite to /test/home.html
could someone provide rewrite condition or rules for this.?
Can you please tell us which server-side technology you are using?
ASKER
Adobe AEM is our app which serves live website and webserver 2.4 in front of wcm.
This would probably be easier on a standard server such as Apache, nginx or IIS. In particular, on Apache such things are a two-line change using mod_rewrite.
I take it that there is no possibility of shifting to a different platform?
I take it that there is no possibility of shifting to a different platform?
ASKER
could you please provide rewrite rule.
its in same server not in different .
apache 2.4 version
its in same server not in different .
apache 2.4 version
Let us know the specific conditions under which you want the rewrites to occur.
ASKER
use will hit www.xyz.com so once he hits it has to rewrite to /livs/bin login.HTML
after user login he need to rewrite to website home page.
for ex: /content/Apache/en/home.HT ML
after user login he need to rewrite to website home page.
for ex: /content/Apache/en/home.HT
Have you got an external shell variable that indicates whether the session has successfully authenticated to whatever login process is being used?
ASKER
authentication will be taken care by internal sling logins. we don't need to worry abt it.
That's not the issue. mod_rewrite needs a way to know whether the session has been authenticated. The simplest way to get this information into mod_rewrite is by a shell variable.
ASKER
can you provide that rewrite lines?
ASKER
is this done?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Explanation provided; no solution available under specified conditions. Points assigned to responding expert.