If this is your first visit, check our documentation. To post, register or login.
Forums / Search Engines / Subdomain scentia.theoutletseason.com can't be crawled by MOZpro

Subdomain scentia.theoutletseason.com can't be crawled by MOZpro

Started by icecold on 7 Sep 2017, 10:19 PM · Views: 65

Results 1 to 7 of 7
7 Sep 2017, 10:19 PM
#1
icecold avatar

icecold

Zen Follower

Join Date:
Jul 2008
Posts:
360
Plugin Contributions:
0

Subdomain scentia.theoutletseason.com can't be crawled by MOZpro

[Note: remember to include site URL, ZC version, list of plugins, PHP version, etc ... read the Posting Tips shown above for information to include in your post here. And, remove this comment before actually posting!]

I'm trying to optimize my store, and instead of using http://www.theoutletseason.com/scentia, I decided to add a subdomain http://scentia.theoutletseason.com, it looks fine and it works if you visit the site in a browser, however the crawler can't see it ...

I received this email from their support
"Hello there,

Your page redirects or links to a page that is outside of the scope of your campaign settings. Your campaign is limited to pages with scentia.theoutletseason.com in the URL path, which prevents us from crawling through the redirect or the links on your page. To enable a full crawl of your site, you may need to create a new campaign with a broader scope, adjust your redirects, or add links to other pages that include scentia.theoutletseason.com. Typically errors like this should be investigated and fixed by the site webmaster."

If I go to scentia.theoutletseason.com, and select the category Women's Perfumes > it goes to https://www.theoutletseason.com/scentia/womens-perfumes-c-1/

So what can I do to change that to be under the scentia subdomain? as this brings a 500 Internal Server error >>> http://scentia.theoutletseason.com/womens-perfumes-c-1/

7 Sep 2017, 11:55 PM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Subdomain scentia.theoutletseason.com can't be crawled by MOZpro

Well I thought I could find a specific FAQ on this, but not quite so...

You have modified the web-facing structure of your site. Instead of accessing each page using your previous www. Etc... you now have a subdomain. and that sub-domain removes a folder from the url.

So you have to modify your includes/configure.php (make permissions 644), to modify the HTTP_SERVER, and HTTPS_SERVER both to have your sub-domain, and then you need to modify the two associated DIR_WS_CATALOG defines to remove the sub-directory. A similar edit is required in admin/includes/configure.php

Basically two things have happened, you've changed your "servers" domain name, and you've changed the folder in which the domain resides. But.... the underlying server folder structure remains the same, so DIR_FS_ items do not need to be changed.

Now, all that said... do you (or did you) have SSL? Was that certificate a wildcard certificate or dedicated to www. ? You will want to validate that you still have the encryption expected if you previously had it before going too far with this.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

8 Sep 2017, 12:49 PM
#3
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,846
Plugin Contributions:
0

Re: Subdomain scentia.theoutletseason.com can't be crawled by MOZpro

@mc12345678 > Now, all that said... do you (or did you) have SSL? Was that certificate a wildcard certificate or dedicated to www. ? You will want to validate that you still have the encryption expected if you previously had it before going too far with this.
This was easy enough to test by going to https://scentia.theoutletseason.com/ in your browser and seeing that it loads fine with a green lock. It is one of those free SSL certs that cPanel can now issue from comodo or Let's Encrypt, if the functionality is turned on in WHM and auto renews every 90 days.

So the problem is related to not setting up the config files corrrectly, and I would be curious to see the .htaccess

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!

8 Sep 2017, 6:43 PM
#4
icecold avatar

icecold

Zen Follower

Join Date:
Jul 2008
Posts:
360
Plugin Contributions:
0

Re: Subdomain scentia.theoutletseason.com can't be crawled by MOZpro

barco57:

@mc12345678
This was easy enough to test by going to https://scentia.theoutletseason.com/ in your browser and seeing that it loads fine with a green lock. It is one of those free SSL certs that cPanel can now issue from comodo or Let's Encrypt, if the functionality is turned on in WHM and auto renews every 90 days.

So the problem is related to not setting up the config files corrrectly, and I would be curious to see the .htaccess

Well I do have a cheap SSL for the domain, not the subdomain scentia(it isn't a wildcard certificate), as I always had my store in a subfolder as part of the main domain https://theoutletseason.com, I wanted to test what happens if I use it in it's own subdomain, after carefully reading both configure.php files, I noticed the default configuration is to have the store in a subdirectory, so DIR_WS_CATALOG and DIR_WS_HTTPS_CATALOG both point to scentia, so my question is with the introduction of a subdomain, both should point to / or be empty, and both HTTP_SERVER and HTTPS_SERVER will use the subdomain scentia.theoutletseason.com?
and as far .htaccess mine is the standard ZenCart version >>>

#
# @copyright Copyright 2003-2013 Zen Cart Development Team
# @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
# @version GIT: $Id: Author: IronLady  Thu Aug 1 16:10:02 2013 +0100 Modified in v1.5.2 $
#
# This is used with Apache WebServers
#
# The following blocks direct HTTP requests to all filetypes in this directory recursively, except certain approved exceptions
# It also prevents the ability of any scripts to run. No type of script, be it PHP, PERL or whatever, can normally be executed if ExecCGI is disabled.
# Will also prevent people from seeing what is in the dir. and any sub-directories
#
# For this to work, you must include either 'All' or at least: 'Limit' and 'Indexes' parameters to the AllowOverride configuration in your apache/conf/httpd.conf file.
# Additionally, if you want the added protection offered by the OPTIONS directive below, you'll need to add 'Options' to the AllowOverride list, if 'All' is not specified.
# Example:
#<Directory "/usr/local/apache/htdocs">
#  AllowOverride Limit Options Indexes
#</Directory>
###############################

# deny *everything*
<FilesMatch ".*">
  Order Allow,Deny
  Deny from all
</FilesMatch>

# but now allow just *certain* necessary files:
<FilesMatch "(?i).*\.(js|css|html?|ico|jpe?g|gif|webp|png|swf|flv|xml|xsl|otf|ttf|woff|eot|svg)$">
  Order Allow,Deny
  Allow from all
</FilesMatch>

IndexIgnore */*

<limit POST PUT>
order deny,allow
deny from All
</limit>


## NOTE: If you want even greater security to prevent hackers from running scripts in this folder, uncomment the following line (if your hosting company will allow you to use OPTIONS):
# OPTIONS -Indexes -ExecCGI



##################
## Optional caching improvements
## Requires mod_header and mod_deflate to be enabled within Apache
##################
<IfModule mod_headers.c>
  Header unset Pragma
  FileETag None
  Header unset ETag
  #Header set Cache-Control "no-transform"
  <FilesMatch "(?i).*\.(ico|jpe?g|gif|webp|png|otf|swf|flv|ttf|woff|eot|svg)$">
    Header set Cache-control "max-age=864000, public, must-revalidate"
    Header unset Last-Modified
  </FilesMatch>
  <FilesMatch "(?i).*\.(html|htm|xml|txt|xsl)$">
    Header set Cache-control "max-age=7200, must-revalidate"
  </FilesMatch>
</IfModule>
<IfModule mod_deflate.c>
  <FilesMatch "(?i)\.(js|css)$">
    SetOutputFilter DEFLATE
  </FilesMatch>
</IfModule>

##################
## Optional improvements
## Requires mod_expires to be enabled within Apache
##################
<ifmodule mod_expires.c>
  ExpiresActive On
  ExpiresDefault A300
  ExpiresByType application/x-javascript A3600
  ExpiresByType text/css A3600
  ExpiresByType image/gif A604800
  ExpiresByType video/x-flv A604800
  ExpiresByType application/pdf A604800
  ExpiresByType text/html A300
  ExpiresByType image/x-icon A86400
  ExpiresByType image/jpeg A2592000
  ExpiresByType image/png A2592000
</ifmodule>
8 Sep 2017, 8:20 PM
#5
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Subdomain scentia.theoutletseason.com can't be crawled by MOZpro

To clarify, a default ZC install does not have an .htaccess file in the root of the store. The one posted above is from a uri rewriter.

As to the modification(s) to the includes/configure.php and admin/includes/configure.php files, yes the "domain" name (ie. HTTP_SERVER) in your case should be your sub-domain, and then the directory in which your store would be found from the web-facing side would be a forward slash for both defines like DIR_WS_CATALOG and the equivalent for the https: side.

That way when ZC creates a link, the link will appear similar to what was entered for the network to get the customer to the page to begin with.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

8 Sep 2017, 9:00 PM
#6
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,846
Plugin Contributions:
0

Re: Subdomain scentia.theoutletseason.com can't be crawled by MOZpro

No, that htaccess is not from a URL rewriter, it is from inside the includes folder, the one I want to see if from one level up the file tree (the site's root), which would have url rewrite stuff in it.

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!

9 Sep 2017, 12:10 AM
#7
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Subdomain scentia.theoutletseason.com can't be crawled by MOZpro

barco57:

No, that htaccess is not from a URL rewriter, it is from inside the includes folder, the one I want to see if from one level up the file tree (the site's root), which would have url rewrite stuff in it.
Knew I shouldn't have said anything about what the contents appeared to represent. :P thanks barco57. Looking at the specific contents again (and longer), you got me and are 100% correct it's not a uri rewriter related htaccess file. Like you said, it also isn't the one at the root of the store or above (if one was/is present).

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...