if you look at my site I want something exactly like our site where there is a jpg and you click on a button to go to the site. I also want to add a password for people to get in.
How do I execute this on cPanel? I pretty much know the html to put the jpg on.
You’ll need to serve an HTML file instead of a directory index.
Create a file called "index.html". And insert the following code:
<a href="http://www.ktownunderground.com"><img src="http://www.ktownunderground.com/theunderground.jpg" alt="ktownunderground.com" /></a>
That should work.
As far as password protecting a directory, you can use .htaccess, and that’s possible through cPanel with the directory navigation module.
|
You’ll need to serve an HTML file instead of a directory index.
Create a file called "index.html". And insert the following code: <a href="http://www.ktownunderground.com"><img src="http://www.ktownunderground.com/theunderground.jpg" alt="ktownunderground.com" /></a> That should work. As far as password protecting a directory, you can use .htaccess, and that’s possible through cPanel with the directory navigation module. |
you are the king
do you do this on the "public html" folder or the main?
public_html folder.
public_html folder will cause the password prompt to come up when it’s loaded, not after the image is clicked to continue.
No shit, genius.
He’ll need to drop the index.html folder in public_html is what I meant.