Having a problem having pages indexed by google.  Seems I am getting a redirect error in google search console ... and excluding pages beyond home page....

robots.txt file

User-agent: *
Disallow: /cache/
Disallow: /private/
Disallow: /zenario/admin/
Disallow: /zenario/api/
Disallow: /zenario/frameworks/
Disallow: /zenario/includes/
Disallow: /zenario_custom/frameworks/
Disallow: /zenario/cookie_message.php
Disallow: /index.php?*
Disallow: /print.php?*
Disallow: /exit.php?*
Disallow: /*?slotName*
Disallow: /*?tag*
Disallow: /tribiq/
Disallow: /styles

 

Including .htaccess -- it's somewhat of a hacked up mess -- clean-up on the 'todo' list!

Options -Indexes

# Uncomment this line and replace /SUBDIRCTORY/ with your subdirectory if
# you want to show the CMS' not found page in place of Apache's not found page.
#ErrorDocument 404 /SUBDIRCTORY/index.php?cID=~

<ifModule mod_headers.c>
Header setifempty Content-Security-Policy "default-src *; img-src * data:; script-src * 'unsafe-eval' 'unsafe-inline'; style-src * 'unsafe-inline'"
Header setifempty Feature-Policy "sync-xhr *; camera 'none'; fullscreen 'none'; geolocation 'none'; gyroscope 'none'; magnetometer 'none'; microphone 'none'; midi 'none'; payment 'none'; speaker 'none';"
Header setifempty Referrer-Policy strict-origin-when-cross-origin
Header setifempty X-Content-Type-Options nosniff
Header setifempty X-Frame-Options SAMEORIGIN
Header setifempty X-XSS-Protection "1; mode=block"
</ifModule>

<IfModule pagespeed_module>
ModPagespeed off
</IfModule>

<IfModule mod_expires.c>
AddType application/font-woff .woff
AddType application/font-woff .woff2
AddType text/css .css
AddType text/javascript .js


ExpiresActive On
ExpiresByType application/javascript "access plus 1 month"
ExpiresByType application/x-javascript "access plus 1 month"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/font-woff "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/svg+xml "access plus 1 year"
ExpiresByType image/vnd.microsoft.icon "access plus 1 year"
ExpiresByType image/x-icon "access plus 1 year"
</IfModule>

<IfModule mod_deflate.c>
#SetOutputFilter DEFLATE
AddOutputFilterByType DEFLATE text/css text/csv text/html text/plain text/xml text/javascript application/javascript application/x-javascript
<IfModule mod_php7.c>
php_flag zlib.output_compression Off
</IfModule>
</IfModule>
<IfModule !mod_deflate.c>
<IfModule mod_php7.c>
php_flag zlib.output_compression On
</IfModule>
</IfModule>

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

# Correct any bad relative-URLs
RewriteRule ^[\/,A-Za-z0-9~_-]*\/(public|private|zenario|zenario_custom|zenario_extra_modules)/(.*)$ zenario/redirect.php?redirectdir=$1&redirect=$2 [L,QSA]

# I added this to redirect http to https
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
Header always set Content-Security-Policy "upgrade-insecure-requests;"

# Favicons
RewriteRule ^favicon.ico$ zenario/file.php?usage=favicon [L]

# Admin URL:
RewriteRule ^admin(|\.\w+)$ zenario/admin/welcome.php [L,QSA]

# Friendly URLs:
RewriteCond %{REQUEST_URI} !/(admin|public|private|zenario|zenario_custom|zenario_extra_modules|purchased_downloads)/
RewriteRule ^([\/,A-Za-z0-9~_-]+)(|\.htm|\.html)$ index.php?cID=$1 [L,QSA]

# Download Now links:
RewriteRule ^([\/,A-Za-z0-9~_-]+)\.download$ index.php?cID=$1&download=1 [L]

# RSS feeds:
RewriteRule ^([\/,A-Za-z0-9~_-]+)\.rss$ index.php?cID=$1&method_call=showRSS [L]

# A friendly URL for the XML sitemap:
RewriteRule ^sitemap.xml$ index.php?method_call=showSitemap [L]


# Remove cached pages and stats from public view:
RewriteRule ^cache/.*$ - [F,NC]

# Remove the build, backup and docstore directories from public view if they were placed here:
RewriteRule ^build/.*$ - [F,NC]
RewriteRule ^backup/.*$ - [F,NC]
RewriteRule ^docstore/.*$ - [F,NC]

# Remove yaml files, phrases and custom frameworks from public view:
RewriteRule ^zenario.*\.yaml$ - [F,NC]
RewriteRule ^zenario.*/phrases/.*$ - [F,NC]
RewriteRule ^zenario.*/admin_phrase_codes/.*$ - [F,NC]
RewriteRule ^zenario_custom/frameworks/.*\.html$ - [F,NC]

# Remove any svn directories from public view:
RewriteRule .*\.svn.*$ - [F,NC]

# A rule for testing whether the htaccess file is working
RewriteRule ^zenario/includes/test_files/is_htaccess_working\.txt$ zenario/includes/test_files/htaccess_is_working.txt [L]

# A rule to catch anything pointing to the old "libraries" directory from version 7.
RewriteRule ^zenario/libraries/(.*)$ zenario/libs/manually_maintained/$1 [L]
</IfModule>

-----

Thanks for any help!

Mike

 

Hi Mike, thanks for asking about this.

 

Can you tell us which version of Zenario you are using exactly (you can see this on the admin login page just after logging in).

 

It would be helpful to know what domain name you are using, can you either post your site's URL here, or if you don't want to disclose it please send it to us via a contact form.

 

thanks

 

Tony

Hi there Mike

 

Can I ask one quick question? Do you have the "Use friendly URLs for visitors" option enabled in the "URL format, aliases and XML sitemap" in the Site Settings?

 

The robots.txt rules look like they will block any URL that doesn't use a friendly URL. If you don't want this happening, try removing this rule:

 

Disallow: /index.php?*

 

Thanks - Version is Zenario 9.0.54156  ... However, I believe I found my problem.  My domain is www.midwayumc.net and I have 'Use Friendly URLs' checked and 'Enable XML Sitemap' is checked as well.  What I did initially was add our site to google search console as www.midwayumc.net/zenario  I believe this setup a loop that Google Bots does not like. The 'property' as google refers to the domain needed to be set and confirmed as www.midwayumc.net only.  Now I have used info:mydomain and info:mydomain/menuURL in google search bar shows me the site is indexed.  Thanks again and if you have any other SEO tips I appreciate all of the help I can get!!!

Ah, good, hopefully that solves the problem then, feel free to ask again if you have further problems.

 

You could possibly benefit from upgrading your site to Zenario 9.2. There are not a lot of SEO-specific changes, but some sites benefit from a small speed increase brought about by the auto-creation of WebP images, thus speeding up loading time (according to PageSpeed).

 

You must confirm your screen name on your profile in order to comment.

Please Login if you wish to add a comment.