Comments on: How to Use directoryIndex and .htaccess to Change Your Site’s Default Index Page https://www.hostinger.ph/tutorials/change-index-page-in-htaccess-with-directoryindex Thu, 22 Feb 2024 14:03:50 +0000 hourly 1 https://wordpress.org/?v=6.5.2 By: Ignas R. https://www.hostinger.ph/tutorials/change-index-page-in-htaccess-with-directoryindex#comment-688677 Fri, 02 Jun 2023 12:15:07 +0000 http://blog.hostinger.io/hostinger-tutorials/%category/htaccesshow-to-change-your-default-index-page-in-htaccess/#comment-688677 In reply to Jim Meyers.

Hello there! There is a big chance that your browser cached up old version of your website. Have you tried clearing browser cache or checking the website on incognito mode of your browser?

]]>
By: Jim Meyers https://www.hostinger.ph/tutorials/change-index-page-in-htaccess-with-directoryindex#comment-688665 Fri, 02 Jun 2023 11:57:12 +0000 http://blog.hostinger.io/hostinger-tutorials/%category/htaccesshow-to-change-your-default-index-page-in-htaccess/#comment-688665 I created my website by copying HTML files from another. It works fine but when I edit ‘index.html’ and save changes they don’t show on my website. The changes are in the file I saved.

]]>
By: Domantas P. https://www.hostinger.ph/tutorials/change-index-page-in-htaccess-with-directoryindex#comment-393250 Fri, 16 Sep 2022 11:19:13 +0000 http://blog.hostinger.io/hostinger-tutorials/%category/htaccesshow-to-change-your-default-index-page-in-htaccess/#comment-393250 In reply to Ogo Isaac.

If you want to use a domain that was registered elsewhere with our hosting services, you should access your hosting provider’s DNS zone and update the name servers to point to Hostinger. You can learn how to point your domain to Hostinger by reading this article ?

]]>
By: Ogo Isaac https://www.hostinger.ph/tutorials/change-index-page-in-htaccess-with-directoryindex#comment-391070 Tue, 13 Sep 2022 12:41:37 +0000 http://blog.hostinger.io/hostinger-tutorials/%category/htaccesshow-to-change-your-default-index-page-in-htaccess/#comment-391070 I can’t setup my blog, i bought a domain from non google registry and i’m trying to my new hosting but it’s giving me a whole lot of problem please help me out.

]]>
By: Vakarė https://www.hostinger.ph/tutorials/change-index-page-in-htaccess-with-directoryindex#comment-266033 Tue, 18 Jan 2022 15:51:43 +0000 http://blog.hostinger.io/hostinger-tutorials/%category/htaccesshow-to-change-your-default-index-page-in-htaccess/#comment-266033 In reply to Mousmi Guru.

Hi there, if you see this message you can proceed with uploading your website files or installing the CMS you like. We have an awesome list of our favourite CMSes, if you’d like to check that out 🙂
Once that’s done and your website has an index.php or index.html file, the default message should be gone, as the index file will override the default.php. In case that doesn’t happen, double check the permissions set for your index file and delete or rename the default.php file. It could happen that after disabling default.php, you’ll see a blank page or a list of your files – that means there’s an issue with your index file, so try and reset it to the default of your chosen CMS.

]]>
By: Mousmi Guru https://www.hostinger.ph/tutorials/change-index-page-in-htaccess-with-directoryindex#comment-265516 Sun, 16 Jan 2022 14:21:44 +0000 http://blog.hostinger.io/hostinger-tutorials/%category/htaccesshow-to-change-your-default-index-page-in-htaccess/#comment-265516 my website show, this

” Website x.com has been successfully installed on server! Please delete the file default.php from the public_html folder and then upload using ftp or file manager ”
how to fix it

]]>
By: Vakarė https://www.hostinger.ph/tutorials/change-index-page-in-htaccess-with-directoryindex#comment-255420 Tue, 14 Dec 2021 12:25:53 +0000 http://blog.hostinger.io/hostinger-tutorials/%category/htaccesshow-to-change-your-default-index-page-in-htaccess/#comment-255420 In reply to Athour.

Hi, ASP.NET doesn’t have .htaccess file, but you can make similar changes from web.config file – you can read more about it here and here.

]]>
By: Athour https://www.hostinger.ph/tutorials/change-index-page-in-htaccess-with-directoryindex#comment-254570 Sat, 11 Dec 2021 05:12:30 +0000 http://blog.hostinger.io/hostinger-tutorials/%category/htaccesshow-to-change-your-default-index-page-in-htaccess/#comment-254570 Hi team,
i have developed my website from Asp.net. And it’s Startup Page is ‘default.aspx’
when i put the name in directory index command Like “DirectoryIndex Default.aspx” in .htacces file its does not work.
when i refress my webpage 403 Error. my question is how can i set startup page is default.aspx
Please help me !
Thanks in advance

]]>
By: Vakarė https://www.hostinger.ph/tutorials/change-index-page-in-htaccess-with-directoryindex#comment-194128 Tue, 09 Feb 2021 14:38:45 +0000 http://blog.hostinger.io/hostinger-tutorials/%category/htaccesshow-to-change-your-default-index-page-in-htaccess/#comment-194128 In reply to Keith.

Hello Keith 🙂

Try using this code in your .htaccess (in public_html):
RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain.com [NC,OR]
RewriteCond %{HTTP_HOST} ^www.domain.com$
RewriteCond %{REQUEST_URI} !foldername/
RewriteRule (.*) /foldername/$1 [L]

]]>