简体   繁体   中英

Index.php file is missing in localhost while url is redirecting?

we have a website. while am running it in my local host, for every redirected url there is missing index.php file. if i put the index.php file in redirected url its working fine. but if i click on any other tabs/widgets again getting the same problem and every time i have to add this index file in url. when i launch my website using http://localhost/zimplee/trunk/index.php url, it will open the home page fine. after clicking on login tab url will redirect to http://localhost/zimplee/trunk/customer/account/create/ . what is the problem i couldn't find it. please help me

If on Apache, probably you didn't provide DirectoryIndex setting in apache's config file (Usually, httpd.conf). Insert this into it:

<IfModule dir_module>
        DirectoryIndex index.php index.html
</IfModule>

You can delete index.html if you don't need static files to be used for output.

You can read about DirectoryIndex in documentation

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM