Website - construction question

Slippertalk Orchid Forum

Help Support Slippertalk Orchid Forum:

silence882

Horse whisperer
Supporting Member
Joined
Jun 7, 2006
Messages
1,060
Reaction score
257
Location
Maryland
As many of you may know, I have a website. On that note, I have a [hopefully] brief question about proper syntax.

In the main folder I have an index.html page which serves as the default page for the site. In that same folder I have a sub-folder 'paphspecies'. Inside the paphspecies folder is another index.html. In order to link to the paphspecies index.html from the main folder, do I just use the tag:

<a href="paphspecies"></a>

Or is there something I'm missing? In the website checker thing that comes with the webhosting, I keep getting Error 301: moved permanently

But when I actually go to the page through my browser, everything loads just fine.

Any help would be appreciated!

--Stephen
 

littlefrog

Hop-meister
Joined
Jun 9, 2006
Messages
1,394
Reaction score
410
Location
Mid Michigan
Oh, and you may need some text inside that anchor in order to actually get something to link to...

<a href='paphspecies/index.html'>paphspecies</a>
 
G

gore42

Guest
If I understand you correctly, you might want to try " ../paphspecies" instead of "paphspecies". Actually, the proper syntax might include another slash at the end, but it obviously will work either way (since it works as it is).

- Matt

Oops, I had an extra "." in there. And of course Tien is right; that's from another directory... shouldn't be necessary from the home page.
 

adiaphane

Well-Known Member
Joined
Jun 12, 2006
Messages
506
Reaction score
0
../ to move out of a directory back to the previous directory.

<a href="foldername/filename.html"> </a>
 
M

Marty

Guest
you may also include a target="_blank" if you want it to open in a new window

ie. <a href="paphspecies/index.html" target="_blank">Click here</a>
 

silence882

Horse whisperer
Supporting Member
Joined
Jun 7, 2006
Messages
1,060
Reaction score
257
Location
Maryland
Thanks for the tips, guys.

I'd like to leave out the 'index.html' part of the links, if possible. I will try out some of the suggested combinations.

--Stephen
 
M

Marty

Guest
no problems

<a href="paphspecies" target="_blank">Click here</a>

should work just as well
 

Latest posts

Top