[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 278
  • Last Modified:

302 Redirect Using Mod_Rewrite

I need to see if I can write a rewrite rule that will forward everthing in a domain as a 302 to another site, all except for the index.htm page.

Is that possible and is there an example of how to do it.

Thanks
0
iceman19330
Asked:
iceman19330
1 Solution
 
ravenplCommented:
Yes, it's very possible, I can give You the answer, or google it out.
Also visit http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html
0
 
caterham_wwwCommented:
> is there an example

E.g.
RewriteEngine on
RewriteRule !^index\.htm$ http://example.com/ [R,L]

Open in new window

0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

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