Solved

Bigger and better .htaccess?

Posted on 2000-05-16
4
140 Views
Last Modified: 2012-05-04
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
Comment
Question by:Raydot
  • 3
4 Comments
 
LVL 6

Accepted Solution

by:
christopher sagayam earned 60 total points
Comment Utility
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
 
LVL 3

Author Comment

by:Raydot
Comment Utility
Huh?  Could you write out a full file example?
0
 
LVL 3

Author Comment

by:Raydot
Comment Utility
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
 
LVL 3

Author Comment

by:Raydot
Comment Utility
Adjusted points from 50 to 60
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now