I have made an ASP.NET website, but when I access it through a browser the Default.aspx is not displayed?

Home » Knowledge Base » F.A.Q. » FTP & File Management » I have made an ASP.NET website, but when I access it through a browser the Default.aspx is not displayed?

This problem can be resolved in a very elegant way using a .htacess file. The content of the .htaccess file should be:

Redirect 302 /index.html http://your_asp_site.com/Default.aspx

If you want to change the directory index in the future so it loads “Test.aspx” for example, you should just replace the “Default.aspx” string with “Test.aspx” in the .htaccess file.

Was this post helpful?

i

Relevant tags:

Connect

Latest posts:

How to Fix 301 Error Moved Permanently

The 301 Moved Permanently is an HTTP status code that indicates a permanent relocation of an online resource from a given URL to a new one. More technically, the moved resource has been moved to the new URL specified in the Location header. The HTTP 301 status code is...

How to Fix 307 Temporary Redirect

307 Temporary Redirect is a response HTTP status code that indicates the requested resource has been moved to a different URL for a limited period of time. Unlike a 301 permanent redirect, the 307 Temporary Redirect message indicates that the change is temporary and...

How to Access Crontab Settings

To access the crontab settings, first, you need to log in to your AwardSpace hosting panel. After you have logged in, head to Crontab Settings, located within the Advanced Tools category:   After you click the Crontab Settings icon, a new page should load. Once...

How to Check My Auto Renewals

To check your AwardSpace hosting plan auto-renewals, first log in to the admin dashboard. Then, head to Wallet, within the Orders & Invoices section:   After that, click the Auto Renewals tab, where you can check any relevant information about your hosting...

How to Check My Payment Requests

To check your payment requests, first log in to the AwardSpace hosting panel. Then, head to Wallet within the Orders & Invoices category:   Then, click the Payment Requests tab. There, you can browse all the information you need about your...



Create a website for free!


Free forever

Our Support Team is Here to Help

 

If you need any questions answered, don't hesitate and contact us. Click the button below and follow the instructions. You can expect an answer within an hour.

 

Contact AwardSpace

 

iNewest knowledge base articles

How to Fix 301 Error Moved Permanently

The 301 Moved Permanently is an HTTP status code that indicates a permanent relocation of an online resource from a given URL to a new one. More technically, the moved resource has been moved to the new URL specified in the Location header. The HTTP 301 status code is...

How to Fix 307 Temporary Redirect

307 Temporary Redirect is a response HTTP status code that indicates the requested resource has been moved to a different URL for a limited period of time. Unlike a 301 permanent redirect, the 307 Temporary Redirect message indicates that the change is temporary and...

How to Access Crontab Settings

To access the crontab settings, first, you need to log in to your AwardSpace hosting panel. After you have logged in, head to Crontab Settings, located within the Advanced Tools category:   After you click the Crontab Settings icon, a new page should load. Once...

How to Check My Auto Renewals

To check your AwardSpace hosting plan auto-renewals, first log in to the admin dashboard. Then, head to Wallet, within the Orders & Invoices section:   After that, click the Auto Renewals tab, where you can check any relevant information about your hosting...

How to Check My Payment Requests

To check your payment requests, first log in to the AwardSpace hosting panel. Then, head to Wallet within the Orders & Invoices category:   Then, click the Payment Requests tab. There, you can browse all the information you need about your...

How to Check My Invoices

To check your invoices in AwardSpace, first log in to the hosting panel. From there, head to Invoices within the Orders & Invoices category:   From this place, you can browse order references, payment orders, payment types, order dates, and various...

Even more web tutorials

Check out our web hosting knowledge base and the WordPress tutorials to learn more, and be better prepared for your website creation and maintenance journey.