nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Apache Redirect / to index.php using mod_rewrite .htaccess

This is a discussion on Apache Redirect / to index.php using mod_rewrite .htaccess within the Web servers forums, part of the Mastering Servers category; How do I redirect / to index.php? Can any one guide me for this issue - I want to redirect Code: ...


Go Back   nixCraft Linux Forum > Mastering Servers > Web servers

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 04-18-2008, 12:24 PM
Member
User
 
Join Date: Jul 2006
Posts: 72
kasimani
Send a message via Yahoo to kasimani
Default Apache Redirect / to index.php using mod_rewrite .htaccess

How do I redirect / to index.php? Can any one guide me for this issue - I want to redirect
Code:
sasa.com to sasa.com/index.php
Thanks In Advance

Last edited by root; 04-18-2008 at 11:21 PM. Reason: fixed bad english
Reply With Quote
  #2 (permalink)  
Old 04-18-2008, 11:17 PM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 545
rockdalinux is on a distinguished road
Default

Put something as follows in your httpd.conf or .htaccess file:
Code:
 RedirectMatch ^/$ /index.php
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
redirect to www in lighttpd muks Web servers 11 06-02-2007 10:55 PM
confused with mod_rewrite kasimani Coding in General 0 01-20-2007 01:46 PM
mod_rewrite in apache: rewritecond kasimani Web servers 0 01-19-2007 11:19 AM
How to redirect Output puppen Shell scripting 15 12-06-2006 08:44 PM
.htaccess problems rcordeiro Linux software 4 07-05-2006 07:32 PM


All times are GMT +5.5. The time now is 04:39 PM.


Powered by vBulletin® Version 3.7.2 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35