configuration apache server

Discuss server installationa nd configuration issues here

Moderators: egami, macek, gesf

Post Reply
red fox
New php-forum User
New php-forum User
Posts: 39
Joined: Tue Nov 22, 2005 8:14 am

Sun Oct 22, 2006 5:05 am

hello,
my problem is
i wanted redirect using module mod_rewrite
which file i add to it this code

Code: Select all

Redirect /index.cfm http://www.example.com/index.php
to redirect?
are .htaccess this ok file :help: or mod_rewrite?
if both no pease tell which file.

thanks in advanced your help :)

regards
red fox

User avatar
gesf
Moderator
Moderator
Posts: 1716
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden
Contact:

Mon Oct 23, 2006 12:24 am

That's the Redirect Directive and it makes part of the mod_alias module.
This is also possible with mod_rewrite, but... there's no need for that.
This directive is allowed in the .htaccess context, so create an .htaccess file with that code.
Sincerely,
Gonçalo "gesf" Fontoura

gesf.org | sessionstart.com | urlms.com

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest