Link to home
Start Free TrialLog in
Avatar of Member_2_5912282
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.?
Avatar of Mukesh Yadav
Mukesh Yadav
Flag of India image

Can you please tell us which server-side technology you are using?
Avatar of Member_2_5912282
Member_2_5912282

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?
could you please provide rewrite rule.
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.
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.HTML
Have you got an external shell variable that indicates whether the session has successfully authenticated to whatever login process is being used?
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.
can you provide that rewrite lines?
is this done?
ASKER CERTIFIED SOLUTION
Avatar of skullnobrains
skullnobrains

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Explanation provided; no solution available under specified conditions.  Points assigned to responding expert.