Thread: Product url

Page 3 of 3 FirstFirst 123
Results 21 to 27 of 27
  1. #21
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,474
    Plugin Contributions
    11

    Default Re: Product url

    Here are the possibilities of URLs to access your site:

    http://idtagsonline.com/shop
    http://www.idtagsonline.com/shop
    http://idtagsonline.com
    http://www.idtagsonline.com
    https://idtagsonline.com/shop
    https://www.idtagsonline.com/shop
    https://idtagsonline.com ***
    https://www.idtagsonline.com

    Entering any of these would be best if it resulted in the https://idtagsonline.com (the one with ***)

    Your cPanel code does not cover that. AND, I'm not sure what cPanel is going to do with redirecting a non-existent directory.

    Melanie would be the expert on this, but a 301 from a previous (and now deleted) directory could be problematic with the SEs.

  2. #22
    Join Date
    Aug 2005
    Posts
    334
    Plugin Contributions
    0

    Default Re: Product url

    Quote Originally Posted by dbltoe View Post
    Here are the possibilities of URLs to access your site:

    http://idtagsonline.com/shop
    http://www.idtagsonline.com/shop
    http://idtagsonline.com
    http://www.idtagsonline.com
    https://idtagsonline.com/shop
    https://www.idtagsonline.com/shop
    https://idtagsonline.com ***
    https://www.idtagsonline.com

    Entering any of these would be best if it resulted in the https://idtagsonline.com (the one with ***)

    Your cPanel code does not cover that. AND, I'm not sure what cPanel is going to do with redirecting a non-existent directory.

    Melanie would be the expert on this, but a 301 from a previous (and now deleted) directory could be problematic with the SEs.
    It is an understanding that you define https://idtagsonline.com *** as a canonical URL.

    I made a request for Google Indexing as they may agree with it or not:

    Click image for larger version. 

Name:	redirect6.JPG 
Views:	13 
Size:	35.7 KB 
ID:	18103

    So, until we will hear from Google no any conclusions may be drawn.

    I may change all redirects as a result.

  3. #23
    Join Date
    Aug 2005
    Posts
    334
    Plugin Contributions
    0

    Default Re: Product url

    Google result shows as follow:

    Click image for larger version. 

Name:	redirect7.JPG 
Views:	13 
Size:	32.4 KB 
ID:	18104

    It appears Google-selected canonical is https://www.idtagsonline.com/

    So, if this is correct, I will keep redirects as they are now in Cpanel, but will check after 20 hours if information propagated through the system. If it is not achieving needed result (301) then I will delete them in C-Panel and will try your codes.

    Though another problem surfaced - what is Google Referring page: http://www.idtagsonline.com/store/

    I requested deleting this property 3 weeks ago.


  4. #24
    Join Date
    Aug 2005
    Posts
    334
    Plugin Contributions
    0

    Default Re: Product url

    Quote Originally Posted by mprough View Post
    There are many things of great importance when moving a shop such as you did. Firstly, make sure ALL versions are redirected and that the header response is a 301 redirect. So

    http://www.domain.com
    https://www.domain.com
    http://domain.com
    https://domain.com

    Here is a tool to test https://www.internetmarketingninjas.com/header-checker/

    Next it is important to understand that reindexing takes time and as much as Google denies as sandboxing period, it is none the less true. The period of time it takes to see a positive SERP change depends a great deal on the health of the site. I have seen sites with issues such as widespread duplicate content take a year or better to begin to show positive results.

    Lastly, and the real bummer of the day is decay. This is a sad fact that through redirect, no matter how long or how healthy the site, some rank will be lost in the changeover.

    Best advice is hang tough, create new, unique content every week and share pages (not spamming) on social media. If you have the skills a few easy pages with "link bait" which is content users find useful enough to share will help.

    ~Melanie
    Your comment is appreciated.
    I took time to read more about Google Search Console and "Duplicate Content" for those sites on the same domain you show above.

    But on some point of creating Google (analytics) Search Console account Google asked to identify "main" or "canonical' site.
    I choose https://www.domain.com

    Click image for larger version. 

Name:	redirect7.JPG 
Views:	22 
Size:	32.4 KB 
ID:	18106

    It looks like Google acknowledged "canonical' site.

    Why it is necessary to duplicate the effort with 301 Permanent redirect?

  5. #25
    Join Date
    Aug 2005
    Posts
    334
    Plugin Contributions
    0

    Default Re: Product url

    Quote Originally Posted by dbltoe View Post
    The one thing often forgotten when doing redirects is whether the SSL can is set to cover BOTH www and non-www or just ONE of the two.

    I often use https://websiteadvantage.com.au/HtAc...ing-ToolResult to quickly create an .htaccess redirect.

    IF your SSL will work for https://idtagsonline.com, you might add this to your .htaccess
    Code:
    # Needed before any rewritingRewriteEngine On
    
    
    ### Built using the .htaccess 301 Redirect Generator from Web Site Advantage
    ### https://websiteadvantage.com.au/HtAccess-301-Redirect-Generator
    ### Place after 'RewriteEngine On' and before any CMS specific rewrite rules
    
    
    # Redirect HTTP with www to HTTPS without www
    RewriteCond %{HTTPS} off
    RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
    RewriteRule .* https://%1%{REQUEST_URI} [R=301,L]
    # Redirect HTTP without www to HTTPS without www
    RewriteCond %{HTTPS} off
    RewriteCond %{HTTP_HOST} !^www\. [NC]
    RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    # Redirect HTTPS with www to HTTPS without www
    RewriteCond %{HTTPS} on
    RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
    RewriteRule .* https://%1%{REQUEST_URI} [R=301,L]
    
    
    ## 301 Redirects
    After doing this your test of the header will show a 301 and a 200. If you need to redirect other URLs to the non-www main store, use the generator to add them to the Old to New Page List

    comment: Right now, your non-www shows as not secure.
    I created this code using suggested tool: https://websiteadvantage.com.au/HtAc...ing-ToolResult:

    PHP Code:
    # Needed before any rewriting
    RewriteEngine On

    ### Built using the .htaccess 301 Redirect Generator from Web Site Advantage
    ### https://websiteadvantage.com.au/HtAccess-301-Redirect-Generator
    ### Place after 'RewriteEngine On' and before any CMS specific rewrite rules

    # Redirect HTTP with www to HTTPS with www
    RewriteCond %{HTTPSoff
    RewriteCond 
    %{HTTP_HOST} ^www\. [NC]
    RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    # Redirect HTTP without www to HTTPS with www
    RewriteCond %{HTTPSoff
    RewriteCond 
    %{HTTP_HOST} !^www\. [NC]
    RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    # Redirect HTTPS without www to HTTPS with www
    RewriteCond %{HTTPSon
    RewriteCond 
    %{HTTP_HOST} !^www\. [NC]
    RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

    RewriteCond %{HTTP_HOST} ^idtagsonline\.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.idtagsonline\.com$
    RewriteRule ^store\/?(.*)$ "https\:\/\/www\.idtagsonline\.com\/$1" [R=301,L
    It worked well for Redirect and I almost though I am done.

    But this completely blocked login to Zen Cart admin.
    There was no errors of any kind, but Login was not possible.
    After removing the code, we could login again.

    So, this makes it pozeling what to do next?

  6. #26
    Join Date
    Aug 2005
    Posts
    334
    Plugin Contributions
    0

    Default Re: Product url

    PHP Code:
    # Needed before any rewriting 
    RewriteEngine On 

    ### Built using the .htaccess 301 Redirect Generator from Web Site Advantage 
    ### https://websiteadvantage.com.au/HtAccess-301-Redirect-Generator 
    ### Place after 'RewriteEngine On' and before any CMS specific rewrite rules 

    # Redirect HTTP with www to HTTPS with www 
    RewriteCond %{HTTPSoff 
    RewriteCond 
    %{HTTP_HOST} ^www\. [NC
    RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] 
    # Redirect HTTP without www to HTTPS with www 
    RewriteCond %{HTTPSoff 
    RewriteCond 
    %{HTTP_HOST} !^www\. [NC
    RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L] 
    # Redirect HTTPS without www to HTTPS with www 
    RewriteCond %{HTTPSon 
    RewriteCond 
    %{HTTP_HOST} !^www\. [NC
    RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L] 

    RewriteCond %{HTTP_HOST} ^idtagsonline\.com$ [OR] 
    RewriteCond %{HTTP_HOST} ^www\.idtagsonline\.com
    RewriteRule ^store\/?(.*)$ "https\:\/\/www\.idtagsonline\.com\/$1" [R=301,L

    I checked code above on another domain and have the same result.

    Redirect is working right, but Zen Cart login to Admin stops working.

    There is some kind of conflict.

    By removing this code from .htaccess login became normal.

    Can anybody see what it can be?

  7. #27
    Join Date
    Aug 2005
    Posts
    334
    Plugin Contributions
    0

    Default Re: Product url

    We found more reports of this problem by other users in the past.

    By deeping more in the forum threads we found very good and simple solution advised by mprough:

    https://www.zen-cart.com/showthread....my-admin/page2

    "So to answer the question... If you are rewriting with the redirect you can simply turn of the rewrite engine off in the first line of your Admin folder's .htaccess. ".

    Code:

    PHP Code:
    RewriteEngine off 
    In our case we put this line in the end and it worked too.

    So, we just added code RewriteEngine off into .htaccess file located in Zen Cart admin folder.

    It resolved the problem

    Thank you mprough

 

 
Page 3 of 3 FirstFirst 123

Similar Threads

  1. ARGH! Feed Export>Need Product URL for Amazon Product Ads!
    By fwood in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 20 Sep 2014, 02:57 AM
  2. v139h On 'product list page' I need an extra icon to appear when the product has an url.
    By post.carlos in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 23 Apr 2012, 11:16 PM
  3. need product not to show up in store but be accessible for purchase via product url
    By karine in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 31 Mar 2011, 12:39 AM
  4. How would I change Product URL in Product Type Info Page to a different name
    By wtashby in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 21 Nov 2008, 11:11 PM
  5. Can I use my prostores product url as my zc product url?
    By erinl in forum Setting Up Categories, Products, Attributes
    Replies: 7
    Last Post: 6 Jul 2008, 05:17 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR