+ 3

Hi, when you go to a site when you click on a link it go to another page that relate to the main page how i can do that

for example : www.sololearn.com www.sololearn.com/about us or www.sololearn.com/ contact

17th Jan 2017, 6:36 AM
ehsan shahbazi
ehsan shahbazi - avatar
4 Antworten
+ 9
Oh, those are the folders in cPanel. I know what you mean, you want to be redirected from www.sololearn.com to www.sololearn.com/about. The .html or .php file you see is actually www.sololearn.com/index.html because browsers actually hide pages with the name "index". So you can create a folder and put another index.html in the folder named "about". You need to do <a href="about/index.html">Click Here</a> so that you will be redirected to www.sololearn.com/about/index.html, which you will only see www.sololearn.com/about in browsers.
17th Jan 2017, 6:59 AM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
+ 4
Um, make a new folder called about, and write index.html in your notepad and save it into that folder?
17th Jan 2017, 4:01 PM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
+ 2
I'm not sure to good understanding your question: you mean the browser button to go previous page ( history back )? or have a link ( or button ) INSIDE your page to emulate the same behaviour? If it is, you can do it just with html or easily with javascript... - html only: <a href="history:back">Previous page</a> - html/js: <input type="button" value="Previous page" onclick="window.history.back();"> You can even put snippet ( could be a function call ) into 'href' attribute, prefixing it by 'script:': <a href="script:window.history.back();">Previous page</a>
17th Jan 2017, 6:55 AM
visph
visph - avatar
+ 1
thank you cheeze , how i can write some information in that page <a href="about/index.html"> about </a> i wanna something for this page
17th Jan 2017, 8:58 AM
ehsan shahbazi
ehsan shahbazi - avatar