Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. 🚫 No AI-generated (LLM) posts allowed. Share your own thoughts and experience — accounts may be terminated for violations.

Need a little help

Status
Not open for further replies.

stoned

Level 6
Legacy Platinum Member
Joined
Jul 22, 2004
Messages
665
Reaction score
0
Hey , It would be great of someone could help me out?!?!

I have this problem..

On a "normal" website if you type in a /directory, It ushally opens up the index.php automaticaly. Well my website It redirects to the homepage. You have to manually open the file within the directory. Please compare

http://randomheros.com/support
http://randomheros.com/support/index.php

If anyone knows why I get this problem please leme know! I think it has something to do with htaccess but I have no leads?! :undecided
 

David G

Internet Entrepreneur
Legacy Exclusive Member
Joined
Apr 15, 2002
Messages
5,755
Reaction score
63
It may be that you need to first rename the html or htm file to php and also make sure there is no htm or html file (with same name) located in the directory, especially index.html or html. The php file will not run by itself as the html or htm file will run if present, not the php (unless the php is a direct request - as in your link 2).

To solve any htaccess issues simply send an empty .htaccess file to the server which will overwite a troublesome one but not do anything itself. See what effect it has. Make sure the empty file is named .htaccess with no extension and has a dot in front (and php is server activated). Next send a correct htaccess which in turn overwrites the empty one. Still another possibilty is an htaccess file may be redirecting to the wrong folder or file name, or even redir to an htm instead of to php.

P.S. This can be tricky and I am sure there are also other possibilities.
 

stoned

Level 6
Legacy Platinum Member
Joined
Jul 22, 2004
Messages
665
Reaction score
0
Thanks Trader, Ill start checking directories now.
 

Theo

Account Terminated
Joined
Feb 28, 2004
Messages
30,306
Reaction score
2,216
Edit or add the .htaccess file in your home directory:

DirectoryIndex index.php
Options -Indexes
ErrorDocument 404 /index.php


The 1st line defines index.php as the default "index" page for that directory (and its children)

The 2nd line turns off listing of contents if the "index" page is missing.

The 3rd line forces all missing page errors to lead to the main "index" page - edit that accordingly.
 
Status
Not open for further replies.

Who has viewed this thread (Total: 1) View details

Who has watched this thread (Total: 2) View details

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Members Online

Premium Members

Upcoming events

Latest Listings

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators

Top Bottom