configuration apache server

Discuss server installationa nd configuration issues here

Moderators: macek, egami, gesf

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

configuration apache server

Postby red fox » 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: 1717
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden
Contact:

Postby gesf » 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.


Return to “Server installation and configuration”

Who is online

Users browsing this forum: No registered users and 2 guests