Jump to content

Apache issues

Go to solution Solved by tikker,

IIRC # are for named anchors, i.e. a section on the same page using

<a name="section1"></a>

<a href="#section1">this goes to section 1</a>

Just

<a href="somepage.html">link</a>

should work though.

Hello guys, after spent an embarrassingly long time learning basic html (barely learned that is, and 6 hours of my life gone) and getting annoyed at apache2, I have decided to just ask here for advise. How the hell do I make the navigation links from the home page lead to other pages? I know that's an incredibly basic thing to ask but this really isn't my forte really. The example navigation link I wanna set up would be:

<li> <a href="#news"> News </a> </li>

I tried putting a html file named #name.html in the same folder as the main page, but that yielded no fruits so I gave up. Should I name the whole file path for the href target? The machine is a linux VM running the LAMP stack. 

Edited by Lord Nicoll
added tags

Yours faithfully

Link to comment
https://linustechtips.com/topic/928001-apache-issues/
Share on other sites

Link to post
Share on other sites

IIRC # are for named anchors, i.e. a section on the same page using

<a name="section1"></a>

<a href="#section1">this goes to section 1</a>

Just

<a href="somepage.html">link</a>

should work though.

Crystal: CPU: i7 7700K | Motherboard: Asus ROG Strix Z270F | RAM: GSkill 16 GB@3200MHz | GPU: Nvidia GTX 1080 Ti FE | Case: Corsair Crystal 570X (black) | PSU: EVGA Supernova G2 1000W | Monitor: Asus VG248QE 24"

Laptop: Dell XPS 13 9370 | CPU: i5 10510U | RAM: 16 GB

Server: CPU: i5 4690k | RAM: 16 GB | Case: Corsair Graphite 760T White | Storage: 19 TB

Link to comment
https://linustechtips.com/topic/928001-apache-issues/#findComment-11352966
Share on other sites

Link to post
Share on other sites

3 minutes ago, tikker said:

IIRC # are for named anchors, i.e. a section on the same page using


<a name="section1"></a>

<a href="#section1">this goes to section 1</a>

Just


<a href="somepage.html">link</a>

should work though.

Thanks, I'll give that a try now

 

Yours faithfully

Link to comment
https://linustechtips.com/topic/928001-apache-issues/#findComment-11352976
Share on other sites

Link to post
Share on other sites

11 minutes ago, tikker said:

IIRC # are for named anchors, i.e. a section on the same page using


<a name="section1"></a>

<a href="#section1">this goes to section 1</a>

Just


<a href="somepage.html">link</a>

should work though.

Yep, that pretty much worked once I accounted for the names, thanks a million

 

Yours faithfully

Link to comment
https://linustechtips.com/topic/928001-apache-issues/#findComment-11353005
Share on other sites

Link to post
Share on other sites

57 minutes ago, tikker said:

IIRC # are for named anchors, i.e. a section on the same page using


<a name="section1"></a>

<a href="#section1">this goes to section 1</a>

Just


<a href="somepage.html">link</a>

should work though.

Oh dear, I can't help but run into problems... To prevent the URL being tezzius.ie/News.html, I set the link to refer to a folder called news, and renamed the file to index.html, so it would not display but only tezzius.ie/News (domain name drop lol) however, I want the navigation bar (visible on the page) to be on all of the pages, and to be able to navigate from one page to another, which won't be easy when they're all in different folders? Should I just put short cuts or something in each of the folders pointing to the respective page? That seems a bad way to do it. 

(Also, if anyone finds any vulnerability in the site, please do let me know, not that I could do much with the info, it would just be nice to know)

Yours faithfully

Link to comment
https://linustechtips.com/topic/928001-apache-issues/#findComment-11353158
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×