The homepage shows the files


#1

Hi,

what did I do wrong? I am new to this.The content shows only if I ad home in the end. www.webanddesign.gq/home

www.webanddesign.gq


#2

hi https://forum.infinityfree.net/discussion/comment/10817

and also in website menu/navigation use extension

instead of

 <nav>
          <ul>
            <li class="current"><a href="home">Home</a></li>
            <li><a href="about">About</a></li>
            <li><a href="services">Services</a></li>
          </ul>
        </nav>

#3

use this

<li class="current"><a href="home.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="services.html">Services</a></li>

#4

means if you want home.html as your starting page then
put this in .htaccess file inside of htdocs folder

# start here
DirectoryIndex home.html

or you can be standardized and rename home.html to index.html
and edit the menu / navigation to reflect this new state


#5

@Dina909090 said:
Hi,

what did I do wrong? I am new to this.The content shows only if I ad home in the end. www.webanddesign.gq/home

www.webanddesign.gq

I’d love to look into this for you, but the domain name currently isn’t being hosted here, but at 000webhost.com. Please change your domain’s nameservers back so I can try to help you.


#6

@Dina909090

this works http://www.webanddesign.gq/index.html
now just .htaccess


#7

@Dina909090

btw. if you like support from infinityfree please consider infinityfree as your hosting provider


closed #8