Jump to content

simple navigation question


bruckerrlb

Recommended Posts

Hi All,

 

I have a simple navigation question, how can I get my website to automatically go to the index.php page once the address is punched in, example www.example.com is entered into the browser, how can I automatically get it to go to www.example.com/index.php. My site has a javascript bug in it where it doesn't display properly if it just goes to the root without a site name. Any help would be much appreciated

 

Thanks

 

Rob

Link to comment
https://forums.phpfreaks.com/topic/113735-simple-navigation-question/
Share on other sites

so this is an javascript error not a php.

 

Or you want php to goto index.php instead of site.com/

 

if so it is not a php solution its HTML or JAVASCRIPT

 

use this in your HEAD tags

 

<meta http-equiv="REFRESH" content="0;url=http://www.the-domain-you-want-to-redirect-to.com/index.php">

 

hope i helped

Thanks for all the responses. This is the company website, I had posted the javascript error in here a while ago and got some great feedback which helped me getting it functional. There is still a problem with the script, and I have no idea how to fix it, I'll post it in the javascript help again.

 

As for this error causing it to not find the index.php site first, that's not the problem, the problem is I need it to go to index.php in order for the page to display properly, I'm not exactly sure why, but I"d like to get it working until I can get the javascript debugged. The only access I have is ftp, can I change the config through a ftp interface?

 

Thanks again

Thanks, I went ahead and did that, named it .htaccess and then put DirectoryIndex index.php but when I uploaded it to my server, I got a "Wrong configuration" message about how it was wrongly configured. Is there anything I have to declare in the htaccess file?

 

Thanks again

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.