File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Java Products and Servers and the fly likes Apache mod_rewrite redirecting all URLs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Apache mod_rewrite redirecting all URLs" Watch "Apache mod_rewrite redirecting all URLs" New topic
Author

Apache mod_rewrite redirecting all URLs

Ramin Esfandiari
Greenhorn

Joined: Mar 15, 2013
Posts: 16

Hi

I am trying to redirect all requested pages to one page.

I have the following

# If no context in URL, redirect to pageC
RewriteRule ^/$ /myserver/pageA/pageB/pageC [R]

This
Ramin Esfandiari
Greenhorn

Joined: Mar 15, 2013
Posts: 16

Sorry I posted the top one incomplete by mistake.

Below lines enable me to simply enter "myserver" and be redirected to the page I want

# If no context in URL, redirect to pageC
RewriteRule ^/$ /myserver/pageA/pageB/pageC [R]

However I need to enter /myserver/pageA/pageB/ and be redirected to /myserver/pageA/pageB/pageC.

Any advice?

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Apache mod_rewrite redirecting all URLs