Forums / Other Business Topics / IP address before domain name

IP address before domain name

Views: 436

Results 21 to 26 of 26
23 Nov 2020, 1:38 PM
#21
leon2lil avatar

leon2lil

New Zenner

Join Date:
Jan 2012
Posts:
38
Plugin Contributions:
0

IP address before domain name

Hi
'/home/cluster-sites/5/m/mcqentertainment.co.uk/public_html/'); ??????
To be honest I don't even know where to begin to check this.

I don't have ssl yet. So i just done your additions with out it and it all working still.

But sitemap xml, when I got to the page on tools, instead of getting the forbidden error. It now just opens up in a new page on the exact same page if you get me. I recopied over the original files. Not a full reinstall same result.

Thanks again for the help

23 Nov 2020, 4:21 PM
#22
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: IP address before domain name

leon2lil:

'/home/cluster-sites/5/m/mcqentertainment.co.uk/public_html/'); ??????
To be honest I don't even know where to begin to check this.
No need to check it. If your storefront is showing pages correctly with that set, then it is almost certainly correct.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

23 Nov 2020, 4:32 PM
#23
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,864
Plugin Contributions:
18

Re: IP address before domain name

Yep, figured it was probably correct but.....

Now we need to get a look at the code in the .htaccess file that is in the public_html folder.

Hold off on Point C (sitemap) until we get from Point A to Point B first. We still need to see if there isn't some strange/incorrect code in that file.

Use the # again to show it to us.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

23 Nov 2020, 5:58 PM
#24
leon2lil avatar

leon2lil

New Zenner

Join Date:
Jan 2012
Posts:
38
Plugin Contributions:
0

Re: IP address before domain name

Nothing in there but ceons rewrite rule

 ## BEGIN CEON URI MAPPING REWRITE RULE

RewriteEngine On

# Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])
RewriteCond %{REQUEST_URI} !\.[a-z]{2,5}$ [NC]
# Don't rewrite any URIs for some, popular specific file format extensions,
#   which are not covered by main file extension condition above
RewriteCond %{REQUEST_URI} !\.(mp3|mp4|h264|woff2)$ [NC]
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/*** [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/editors/ [NC]
# Don't rewrite sitemap directory
RewriteCond %{REQUEST_URI} !^/sitemap/ [NC]
# Don't rewrite bmz_cache directory
RewriteCond %{REQUEST_URI} !^/bmz_cache/ [NC]
# Don't rewrite logs directory
RewriteCond %{REQUEST_URI} !^/logs/ [NC]
# Don't rewrite cgi-bin directory
RewriteCond %{REQUEST_URI} !^/cgi\-bin/ [NC]
# Handle all other URIs using Zen Cart (its index.php)
RewriteRule .* index.php [QSA,L]

## END CEON URI MAPPING REWRITE RULE 
24 Nov 2020, 1:07 PM
#25
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: IP address before domain name

Although it appears that the sitemap.xml file appears to now not be accessible, there is nothing "wrong" with the links generated by sitemap as compared to the links that had previously been generated for the site.

Please again review this earlier posting: https://www.zen-cart.com/showthread.php?227183-IP-address-before-domain-name&p=1374980#post1374980

What is/was happening is that while the site was located in a sub-directory, uris were generated. Those links include the sub-directory name. Now that the site has been moved back to the parent directory, the sub-directory "doesn't exist", but the links still point to the sub-directory. In reality this is fine especially if the site has already been indexed to any degree. Obviously the desire is to "remove" that sub-directory for ease of accessing the link(s). This can be remedied without losing access to those items by way of the old uri(s). Basically the uri(s) need to be updated to make the old one "old" and to create a new one that becomes the current/active uri... (again reread the above post)... if the site is brand spanking new and has had no traffic/expectation of having had links captured to the page(s) then the addresses can be updated wholesale and therefore any attempt to access such an "old" link would go to the Zen Cart's "page not found" location.

Again though, there is no "problem" with the sitemap software. It is reporting the link(s) that have been selected/entered for each desired page.

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

24 Nov 2020, 1:25 PM
#26
leon2lil avatar

leon2lil

New Zenner

Join Date:
Jan 2012
Posts:
38
Plugin Contributions:
0

Re: IP address before domain name

Hey All.

I just logged in and it's created the sitemaps it's self at 9:13 this morning so I guess it working it just seems the rebuild action doesn't work. So that's a win.
Everything seems to be working now.

Thanks for hanging in there with me