Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Rewrite rule

7:51 pm on Jan 11, 2003 (gmt 0)

New User

10+ Year Member

joined:July 29, 2004
votes: 0

I need some help doing a rewrite for my apache 1.3x server..

Here's the scenario:

I'd like all traffic from:

[domain.com...] (where '*' is a wildcard to capture any hit on that directory)

to go to:


basically, I'd like to have any request that would have been directed to the /cgi-bin/boards dir. redirected to the new URL and page.

So, something like:


should redirect to:


Thanks in advance!


11:52 pm on Jan 11, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 22, 2002
votes: 0

Welcome to WebmasterWorld [webmasterworld.com] Legolas.

Be sure to read Marcia`s WebmasterWorld Welcome and Guide to the Basics [webmasterworld.com] post which contains a lot of very helpful information on how things are dome at WebmasterWorld.

Have a look at An Introduction to Redirecting URLs on an Apache Server [webmasterworld.com] to get you started on how to do URL rewriting using mod_rewrite. These fora contain an extensive number of examples of the thing you want to do. Use the site search [searchengineworld.com] to look for relevant threads.

Hope this helps.