Hello, I am creating a homepage, and I want it to be a PHP file (ex. domain/index.php - basically something that will automatically go to domain.com). However, when I have the homepage as index.php, the "Top Files", "Latest Files", etc. pages (which are .php) don't work as they are the links such as http://domain.com/index.php?cmd=all . How can I find a way around this problem so that I can have latest files pages, etc., but still have a homepage index.php file exist? Thanks in advance.
Yes, with a correct .htaccess file, your problem will be solved. If you don't know what it is used for, I recommend you read this article on wiki: http://en.wikipedia.org/wiki/Rewrite_engine Code (markup):
I haven't placed anything inside of the .htaccess file. What do I need to place in it? It is blank right now.
What was the file that was previously index.php, rahter than the homepage? There's an option you can place in the .htaccess which will change the default page, so put it back as it was, and Google "changing default apache file" ; there should be something there. That's your best bet, I think.
index.php was a core.tpl.php & categories.tpl.php files combined. I just put index.php back to what it was normally. What do I add to the .htaccess file to change this? Thanks in advance.
What do you mean? I need a .php file as my homepage. So when I go to domain.com, it goes to the .php file. Anything but index.
Maybe try a redirect? Please explain what you mean... What a redirect will do is suddenly redirect you from your homepage to a different page. For instance from domain.com to domain.com/life.php or if you put a index.php inside of a folder called life domain.com/life/
A redirect would work, possibly. Here is the situation. I have domain.com. There is a file which contains some stuff for a download system called "index.php". I don't need it. However, it seems other links that feed from that index file need it... such as http://domain.com/index.php?cmd=all . Without index.php correct, those types of links won't work. So basically what I need is a php page that will be shown when a user goes to domain.com . I know index.php is what is the default. When you go to domain.com right now, it goes to index.php. I want to change this so when you go to domain.com, it pulls up a php files, but it can't be index since that one is "used". Thanks
Hell, Does anyone know how I can do this? Simply make a redirect? Thanks. I greatly appreciate your help.