• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 180
  • Last Modified:

Bigger and better .htaccess?

Is there a way to get .htaccess to do things other than pop up an authentication window?  Like, can it redirect the user to another page?  I figure this one's pretty easy...
  • 3
1 Solution
christopher sagayamCommented:
yes sure use

Redirect /page http://foo2.bar.com/page

every request to your 'page will be redirected to 'http://foo2.bar.com/page'


Alias /image /ftp/pub/image

every request to 'image' will be redirected to '/ftp/pub/image"
RaydotAuthor Commented:
Huh?  Could you write out a full file example?
RaydotAuthor Commented:
Also, is there a way to check for specific pages within a directory?  Like if you go to page A do this, page B do that, page C do the other?
RaydotAuthor Commented:
Adjusted points from 50 to 60
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now