AWS S3 Cloudfront not working with TidyURL

I recently converted a simple static site from http to https. It runs on AWS in a S3 Bucket.
When I converted this site with a cloudfront distribution, an AWS Certificate to show SSL https://website.com.br… the site would load, but subsequent subpages would get the "this XML file does not appear to have any style… "

I spent hours testing everything… but… when I switched off the “use tidy URL” option in Rapidweaver, that one that suppresses the …/index.html part of the URL… everything started to work normally. Anyone had observed this?

The tidy links option relies on the web server to complete the URL. So if they aren’t working for you on your configuration of AWS, then the server isn’t setup or capable of doing that.

Apache, Nginx, and IIS can all be configured to “complete” the URL.

Most people are using Apache., so here is how it works in Apache. There is a directive called DirectoryIndex part of the Apache Module mod_dir. This tells Apache what files to server if the URI sent is a directory.

So a very common default directory index might look like this :

DirectoryIndex index.html index.cgi index.php

That will tell Apache to look for a file called index.html first and if found server that content otherwise then look for a file named index.cgi and so on. It processes left to right until it finds a file. If they find none of the Directory index files, it will then either give a not found (404 status) or return a directory index listing depending on another options.

# Disable directory browsing 
Options -Indexes
#
#. OR
# Enable directory browsing 
Options +Indexes


I recommend for security that you disable this option.

We can set these options with Apache with the Local Directives file .htaccess. With Nginx, they need to be configured in the Servers Configuration file.

Doug
thanks for you answer. But the site runs on AWS S3 bucket. No APACHE there…

I’m not familar with all the different AWS options. I know you can run Apache (or any server you want) with AWS - Amazon Elastic Compute Cloud (Amazon EC2).

As I said, most people are using Apache Web Server. Amazon S3 from my understanding, is
“Amazon Simple Storage Service” ( the three S’es) and isn’t really a web server but is designed to store and retrieve data.

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