• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Apache mod_rewrite redirecting all URLs

 
Greenhorn
Posts: 16
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 16
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic