Url Redirect Not working

I have application name as "appname"  and i want to redirect internally to a particular action using name space like
/test/index.action and /test1/login.action  


i am not able to mask the context name to ProxyPass

Below conf file describes you my server configuration

NameVirtualHost 192.168.10.222:80
<VirtualHost 192.168.10.222:80>
        ServerName ie.abc.com

        ErrorLog /var/log/httpd/Ie-error.log
        # Log everything in common format, except events tagged with dontlog - see end of httpd.conf for details
        CustomLog /var/log/httpd/Ie-access.log common env=!dontlog

        # Redirect to proper start page.
        RewriteEngine On
        RewriteRule  ^/$ index.action [R=301,L]
       


        ProxyRequests Off
        ProxyPreserveHost On

        <Proxy *>
        Order deny,allow
        Allow from all
        </Proxy>

        # ProxyPass to the jboss instance
        ProxyPass / http://localhost:8080/appname/
        ProxyPassReverse / http://localhost:8080/appname/

        <Location />
        Order allow,deny
        Allow from all
       </Location>
</VirtualHost>


where appname is context root for both "test" and "test1" are name spaces.

test.png
gunasekharyalamuriAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

NrisimhaCommented:

Well, you need to put redirection command in .htaccess file.

For example:

Point an entire site to a different URL, such as domain.net redirected to domain.com:

# This allows you to redirect your entire website to any other domain
Redirect 301 / http://example.com/

Redirect index.html to a specific subfolder:

# This allows you to redirect index.html to a specific subfolder
Redirect /index.html http://example.com/newdirectory/

Redirect an old file to a new file path:

# Redirect old file path to new file path
Redirect /olddirectory/oldfile.html http://example.com/newdirectory/newfile.html

Redirect to a specific index page:

# Provide Specific Index Page (Set the default handler)
DirectoryIndex index.html


Nrisimha


0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
NrisimhaCommented:


I would like to read my explanation in this post:

301 Redirect and Stylesheet


http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/HTML/Q_27499567.html


regards

Nrisimha
0
gunasekharyalamuriAuthor Commented:
As my directory structure is like this

appname
  | test/index.action
  | test1/login.action
0
gunasekharyalamuriAuthor Commented:
In my url redirect its redirecting http://localhost:8080/appname/test/index.action 

But i dont wat to redirect appname in my redirection.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Web Server

From novice to tech pro — start learning today.