Redirecting problem


#1

Hello.
My website is tibbforum.epizy.com
When I try to enter my website I write this domain and then open the root page in which all files are there
But I want to open “http://tibbforum.epizy.com/link.html
I have tried much more codes for .htacces but I can’t do it.
If you know please help me and give me right codes which I have to write it in .htaccess


#2

If you want to redirect your root domain to the file, simply change the file name to index.html instead of link.html … It’s simple


#3

Also to hide the directory… write -Indexes in HTACCESS file


#4

But if index.html is in another folder?
For example index.html is in folder named “example”
How I can redirect in this condition?


#5

That’s probably doable with .htaccess rewrite rules. But I would not recommend going that route, .htaccess rules are complicated, error prone and hard to debug. I would recommend to just move the file to the place the server looks for it (i.e. out of the subdirectory).


closed #6

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.