Allison
Allison

Reputation: 65

How to get back to index.html in .htaccess?

I am completely new writing in .htaccess format. First what I did was add this in for the removal of my .html extensions. I am doing all this in cPanel under the /public_html/ folder. I also moved my .htaccess file inside that folder.

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html

All my pages that I have up right now are working without the extensions, expect when I go back to my homepage. Originally index.html but now when I click the home button my url looks like http://allisonshtml.com/public_html

Really to me when I think about this, its kind of backwards because my website is inside the public_html folder.

I tried everything in my power to fix this. Please help or any feedback would be lovely!

Upvotes: 0

Views: 222

Answers (1)

Allison
Allison

Reputation: 65

Figured it out, my Google chrome wasn't rendering. Cleared the background data and waaalaa it worked.

Upvotes: 1

Related Questions