• 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...
0
Raydot
Asked:
Raydot
  • 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'

(or)


Alias /image /ftp/pub/image


every request to 'image' will be redirected to '/ftp/pub/image"
0
 
RaydotAuthor Commented:
Huh?  Could you write out a full file example?
0
 
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?
0
 
RaydotAuthor Commented:
Adjusted points from 50 to 60
0
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