Zanno Posted August 8, 2021 Share Posted August 8, 2021 I've ran in to a weird issue. I have a website that's hosted on my own server for some time now, and today I got another domain which I host on the same server. For the first website I host I can point to subpages simply by using "https://mywebsite.com/info" but with my new website I have to format links like this "https://myotherwebsite.com/info.html" I can't figure out why. The structures are the same for both websites. The first website has a root folder in which both index.html and info.html is placed. The second website has a different root folder in which both index.html and info.html are placed. Not that it's a huge isse, I just don't like that the html part shows in the address field for visitors. Link to comment Share on other sites More sharing options...
Ingolme Posted August 8, 2021 Share Posted August 8, 2021 You can use URL rewriting. I'm not sure which kind of web server you're using, but if it's Apache then you should be able to copy the ".htaccess" file from one website to the other and they should work the same. Link to comment Share on other sites More sharing options...
Zanno Posted August 9, 2021 Author Share Posted August 9, 2021 I'm running Apache 2.4 on Synology. I can't find .htaccess. Or do I have to be logged in as root for that? Link to comment Share on other sites More sharing options...
Zanno Posted August 9, 2021 Author Share Posted August 9, 2021 Hmm, never mind. I started from scratch because I wasn't happy with the layout and visuals - and all of a sudden everything works without the extra .html. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now