Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RewriteRule (cpanel)

Status
Not open for further replies.

stormbind

Technical User
Mar 6, 2003
1,165
GB
Hi,

I am a little stumped, partly because cpanel is rather dis-empowering and partly because Apache documentation suggests that I want may be "not supported because it is silly" :(

Here is my guess:
Code:
RewriteRule ^/cgi-bin/forums(.*)$ /index.html [P]

I hope to intercept all requests (from old links) directed to the following:

domain.com/cgi-bin/forums/bbs.cgi?etc.etc.etc.

and rewrite them to point at a static message, such as:

domain.com/index.html

Can you help? Thanks very much! :)

--Glen :)

Memoria mihi benigna erit qui eam perscribam
 
Does your guess not work? If not maybe an extra / is needed, ie:

Code:
RewriteRule ^/cgi-bin/forums/(.*)$ /index.html [P]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top