Hey quick question. I want to have everything that goes to http://www.mysite.com/ go to http://www.mysite.com/index.php What command do I need in my .htaccess? Thanks
I do not know but Nintendo has a sticky with .htaccess info. You might try looking for that in appropriate forum. The URL is: http://forums.digitalpoint.com/showthread.php?t=23044 I know .htaccess is quite powerful and need to study this area. Shannon
I have read through that and I am still confused thats why I posted. There isnt an example in there for what I need I dont think.
I too read after I posted and am with you. Sorry I bothered you. I have started reading .htaccess tutorials and get to the mod rewrite stuff and give up. Shannon
Aaron, there's a better way to do this. Create a .htaccess file in the root directory with the following line (or add the line to your existing .htaccess file in the root): DirectoryIndex index.php Code (markup): That instructs the server to use index.php as the default, so anyone typing http://www.mysite.com/ or http://www.mysite.com is directed to http://www.mysite.com/index.php
or I guess.... Just leave off the www. if you dont use it or I'm not sure just a slash for the old page acts with the whole pages in your root, hence try the later two.
That will redirect everything in the root directory to index.php, Pedster. The DirectoryIndex solution I posted above avoids this.