#1 August 18, 2015 1:44pm

dynaread
Member
Registered: August 21, 2014
Posts: 16

htaccess configs when requiring access to non-BigTree directories

Hello Tim and colleagues,

We bumped into two small issues on new client site https://www.---bla bla bla--.com/

We have completed SEO optimization for a number of pages and were unable to upload a google verification .html, as it immediately directs the visitor to a Page not Found, as that url https://www.---bla bla bla---.com/12121 … nFile.html cannot be found.

Likewise, we have a sitemap generator running under https://www.---bla bla bla---.com/generator/ and this too gets redirected as "cannot be found"

Our htaccess is this

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://www.--- bla bla bla ---.com/$1 [R=301,L]
</IfModule>

RewriteEngine On
RewriteRule ^favicon.ico - [L]
RewriteRule ^PDF/* - [L]
RewriteRule ^assets/* - [L]
RewriteRule ^frontend/* - [L]
RewriteRule ^$ site/ [L]

Any ideas?

Thanks :-)

Hans

Last edited by dynaread (August 18, 2015 3:59pm)

Offline

#2 August 18, 2015 3:15pm

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 974

Re: htaccess configs when requiring access to non-BigTree directories

For the Google Verification file with the default .htaccess that ships with BigTree anything in /site/ should be publicly accessible.
I'm honestly not very good at rewrite rules so I'm not sure if any of your custom ones could be causing issues.

I'm not sure what your /generator/ URL is supposed to load, but if it's a folder inside of /site/ I'd think that should work with the default .htaccess as well.

If you happen to have your google verification stuff inside the root folder you'll definitely want it inside /site/ to make it not route through BigTree.

Offline

#3 August 18, 2015 3:58pm

dynaread
Member
Registered: August 21, 2014
Posts: 16

Re: htaccess configs when requiring access to non-BigTree directories

Thanks, Tim. I guess our best bet than is to place the sitemap generator in /site/, as you seem to suggest it should render. A quick test resulted in this https://www.--bla bla--.com/generator/ showing Hello
So we should be in business :-)

Thanks so much, Tim. Still enjoying BigTree. Hope all is well on the East Coast.

Warm greetings,

Hans

Last edited by dynaread (August 18, 2015 4:23pm)

Offline

#4 August 18, 2015 3:59pm

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 974

Re: htaccess configs when requiring access to non-BigTree directories

Glad everything is working, congrats on the site launch!

Offline

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.