apparently it can. I did merge the html_output.php files though...
Thank You,
John
apparently it can. I did merge the html_output.php files though...
Thank You,
John
Hi,
I have been using the version 2.215 of this wonderful module on zencart version 1.5.4 and it is working very fine.
Now, i want to use SSL and make my site secure using https://
My question is :
Can I tweak the configure.php file to redirect the url to https:// even if I am already redirecting my URLs through this mod?
Moreover, will changing to https:// harm my ranking on google? or will it transfer the ranking to the new https:// site?
Kindly reply with steps to do this properly.
thanks in advance.
-muteyaar
see:
https://www.zen-cart.com/content.php...o-i-enable-ssl
pay close attention to #3. i'm assuming you are turning on SSL for the whole site. its actually quite easy:
If you want your ENTIRE site to be served over SSL, then use https on both defines:
i make no guarantees with regards to google, but my experience says your rank will be unaffected by this change.Code:define('HTTP_SERVER', 'https://www.YOUR_SHOP.com'); define('HTTPS_SERVER', 'https://www.YOUR_SHOP.com'); define('ENABLE_SSL', 'true');
nothing need be done with regards to ultimate SEO....
good luck!
Hi there,
I was just wondering, is this module php 7.1 compatible? I am not certain it is the reason for the error, but I get a blank page but part of the url at the top of page. For example, on featured page it shows:-
/featured_products
And so on. I am on 1.55f, I know that it is not 7.2 compatible, so perhaps actually its not 7.1 compatible. The url showing thing just made me wonder if the url rewriting part of this module might need tweaking. Thanks in advance for any replies.
Hello all,
I used ultimate_urls/ rss/ news etc plus, and i can see the urls with ?* as :http://www.targetmarts.com/womens-ha...0a&filter_id=6
i hope the urls replace ?* to whate choose ,display as http://www.targetmarts.com/womens-ha...c-11_13/coach/
rss display as:
http://www.targetmarts.com/rss_feed/ http://www.targetmarts.com/rss_feed/...dbags-c-11_13/ http://www.targetmarts.com/rss_feed/...c-11_13/coach/ etc
news display as:
replace http://www.targetmarts.com/more_news?news_id=6 to http://www.targetmarts.com/more_news/(news_tittle)
http://www.targetmarts.com/security-...ort=20a&page=3 replace to : http://www.targetmarts.com/security-cameras-c-1/page=3 or page/3
please let us to know how to work for this ?
My Ultimate URLs set as: configuration-Ultimate URLs-Limit alternate URLS to the following pages: product_info, product_music_info, document_general_info, document_product_info, product_free_shipping_info, products_new, products_all, shopping_cart, featured_products, specials, contact_us, conditions, privacy, reviews, shippinginfo, faqs_all, site_map, gv_faq, discount_coupon, page, page_2, page_3, page_4, manufacturers_all, wishlist, manufacturers_about, links, links_submit, advanced_search_result, advanced_search, unsubscribe, login, account, account_history_info, wishlists, wishlist_edit, about_us, wholesale, ask_a_question, affiliate, products, product_reviews_info, news_archive, more_news, index
.htaccess:
by the way,i found view-source:http://targetmarts.com/ home page url wasPHP Code:
#############################
## General Settings
Options +SymLinksIfOwnerMatch -FollowSymlinks -Indexes
RewriteEngine ON
# Define the default Character Set for Browsers
AddDefaultCharset utf-8
#############################
## Header Settings
<IfModule mod_headers.c>
# Set the default language of your site
Header set Content-Language "en-us"
# Ensure the most current site files are being provided
Header set Cache-Control "proxy-revalidate, stale-while-revalidate=86400, stale-if-error=259200"
# Prevents seeing information not needed to see
Header unset X-Powered-By
# Protection against PHP or Javascript code placed within images and other misinterpretations of your resources.
Header set X-Content-Type-Options "nosniff"
# Protection against Clickjacking
Header set X-Frame-Options "SameOrigin"
# Protection against XSS (Cross-Site Scripting)
Header set X-XSS-Protection "1; mode=block"
# Protection against abuse of Adobe Flash / Silverlight / PDF files
Header set X-Permitted-Cross-Domain-Policies "Master-Only"
</IfModule>
#############################
## EXPIRES CACHING
# Note: You cannot set expires headers for files or content you are loading from a different site.
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 day"
ExpiresByType application/javascript "access plus 1 month"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresByType image/webp "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 month"
# Embedded OpenType (EOT)
ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
ExpiresByType font/eot "access plus 1 month"
# OpenType
ExpiresByType font/opentype "access plus 1 month"
# TrueType
ExpiresByType application/x-font-ttf "access plus 1 month"
# Web Open Font Format (WOFF) 1.0
ExpiresByType application/font-woff "access plus 1 month"
ExpiresByType application/x-font-woff "access plus 1 month"
ExpiresByType font/woff "access plus 1 month"
# Web Open Font Format (WOFF) 2.0
ExpiresByType application/font-woff2 "access plus 1 month"
</IfModule>
RewriteEngine on
RewriteBase /
RewriteRule ^\.htaccess$ - [F]
#RewriteCond %{QUERY_STRING} ^$
#RewriteRule ^index\.php$ / [R=301,L]
RewriteRule ^index\.php$ - [L]
# Handles the new URL formats
RewriteRule ^(.*)-c-([0-9_]+)/(.*)-p-([0-9]+)(.*)$ index\.php?main_page=product_info&products_id=$4&cPath=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-c-([0-9_]+)/(.*)-pi-([0-9]+)(.*)$ index\.php?main_page=popup_image&pID=$4&cPath=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-c-([0-9_]+)/(.*)-pr-([0-9]+)(.*)$ index\.php?main_page=product_reviews&products_id=$4&cPath=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-c-([0-9_]+)/(.*)-pri-([0-9]+)(.*)$ index\.php?main_page=product_reviews_info&products_id=$4&cPath=$2&%{QUERY_STRING} [L]
# For dreamscape's News & Articles Manager
RewriteRule ^news/?$ index\.php?main_page=news&%{QUERY_STRING} [L]
RewriteRule ^news/rss.xml$ index\.php?main_page=news_rss&%{QUERY_STRING} [L]
RewriteRule ^news/archive/?$ index\.php?main_page=news_archive&%{QUERY_STRING} [L]
RewriteRule ^news/([0-9]{4})-([0-9]{2})-([0-9]{2})$ index\.php?main_page=news&date=$1-$2-$3&%{QUERY_STRING} [L]
RewriteRule ^news/archive/([0-9]{4})-([0-9]{2})$ index\.php?main_page=news_archive&date=$1-$2&%{QUERY_STRING} [L]
RewriteRule ^news/(.*)-a-([0-9]+)-comments$ index\.php?main_page=news_comments&article_id=$2&%{QUERY_STRING} [L]
RewriteRule ^news/(.*)-a-([0-9]+)$ index\.php?main_page=news_article&article_id=$2&%{QUERY_STRING} [L]
# Original (unchanged) URL formats
RewriteRule ^(.*)-p-([0-9]+)(.*)$ index\.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-m-([0-9]+)(.*)$ index\.php?main_page=index&manufacturers_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pi-([0-9]+)(.*)$ index\.php?main_page=popup_image&pID=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pr-([0-9]+)(.*)$ index\.php?main_page=product_reviews&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pri-([0-9]+)(.*)$ index\.php?main_page=product_reviews_info&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-ezp-([0-9]+)(.*)$ index\.php?main_page=page&id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-c-([0-9_]+)(.*)$ index\.php?main_page=index&cPath=$2&%{QUERY_STRING} [L]
RewriteRule ^news/?$ index.php?main_page=news&%{QUERY_STRING} [L]
RewriteRule ^news/rss.xml$ index.php?main_page=news_rss&%{QUERY_STRING} [L]
RewriteRule ^news/archive/?$ index.php?main_page=news_archive&%{QUERY_STRING} [L]
RewriteRule ^news/([0-9]{4})-([0-9]{2})-([0-9]{2})$ index.php?main_page=news&date=$1-$2-$3&%{QUERY_STRING} [L]
RewriteRule ^news/archive/([0-9]{4})-([0-9]{2})$ index.php?main_page=news_archive&date=$1-$2&%{QUERY_STRING} [L]
RewriteRule ^news/(.*)-a-([0-9]+)-comments$ index.php?main_page=news_comments&article_id=$2&%{QUERY_STRING} [L]
RewriteRule ^news/(.*)-a-([0-9]+)$ index.php?main_page=news_article&article_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-i-([0-9]+)$ index.php?main_page=info_manager&pages_id=$2&%{QUERY_STRING} [L]
RewriteRule ^producttags/(.*)$ index.php?main_page=producttags&letter=$1&%{QUERY_STRING} [L]
RewriteRule ^producttags/(.*)/([0-9]+)$ index.php?main_page=producttags&letter=$1&page=$2&%{QUERY_STRING} [L]
RewriteRule ^wishlist/$ index.php?main_page=wishlist [L]
RewriteRule ^wishlist/(.*)$ index.php?main_page=wishlist&letter=$1&%{QUERY_STRING} [L]
RewriteRule ^wishlist/(.*)/([0-9]+)$ index.php?main_page=wishlist&letter=$1&page=$2&%{QUERY_STRING} [L]
# Rewrite all other requests (if the file / directory does not exist)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index\.php?main_page=$1&%{QUERY_STRING} [L]
<base href="http://www.targetmarts.com/" />
<link rel="canonical" href="http://www.targetmarts.com/" />
<link rel="alternate" href="http://www.targetmarts.com/index?language=gb" hreflang="gb" />
<link rel="alternate" href="http://www.targetmarts.com/index?language=en" hreflang="en" />
i want replace to :
<base href="http://www.targetmarts.com/" />
<link rel="canonical" href="http://www.targetmarts.com/" />
<link rel="alternate" href="http://www.targetmarts.com/?language=gb" hreflang="gb" />
<link rel="alternate" href="http://www.targetmarts.com/?language=en" hreflang="en" />
how to do ?
Last edited by targetmarts; 24 Mar 2018 at 02:50 PM.
Hi,
I wonder if you can help me.
ZC 1.5.5f
USU 2.215
I am having trouble with repopulating the attributes after clicking a product in cart.
With USU enabled, in the cart links look like this:
my-product-name-p-341.html
With USU disabled, in the cart links look like this:
index.php?main_page=product_info&products_id=341:975079f2b110126e0c4ba1af5219705 c
Here is the part of .htaccess that deals with USU rewrites:
# Handles the new URL formats
RewriteRule ^(.*)-c-([0-9_]+)/(.*)-p-([0-9]+)(.*)$ index\.php?main_page=product_info&products_id=$4&cPath=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-c-([0-9_]+)/(.*)-pi-([0-9]+)(.*)$ index\.php?main_page=popup_image&pID=$4&cPath=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-c-([0-9_]+)/(.*)-pr-([0-9]+)(.*)$ index\.php?main_page=product_reviews&products_id=$4&cPath=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-c-([0-9_]+)/(.*)-pri-([0-9]+)(.*)$ index\.php?main_page=product_reviews_info&products_id=$4&cPath=$2&%{QUERY_STRING } [L]
# Original (unchanged) URL formats
RewriteRule ^(.*)-p-([0-9]+)(.*)$ index\.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-m-([0-9]+)(.*)$ index\.php?main_page=index&manufacturers_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pi-([0-9]+)(.*)$ index\.php?main_page=popup_image&pID=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pr-([0-9]+)(.*)$ index\.php?main_page=product_reviews&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pri-([0-9]+)(.*)$ index\.php?main_page=product_reviews_info&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-ezp-([0-9]+)(.*)$ index\.php?main_page=page&id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-c-([0-9_]+)(.*)$ index\.php?main_page=index&cPath=$2&%{QUERY_STRING} [L]
Thanks!
David
So, after some digging in, I found there are two problems. For an unknown reason, the USU 2.215 no longer passes the attributes to product link.
To fix that, in includes/classes/usu.php uncomment LINE 320. Like so:
toPHP Code:
$p2[1] = zen_get_prid($p2[1]);
Next problem will only affect you if you are running Apache on Windows (which in my case I was - for a test server).PHP Code:
// $p2[1] = zen_get_prid($p2[1]);
The colon is a disallowed character on Windows version of Apache, due to NTFS conventions. I instead opted for using a plus '+' character. I simply added to includes/classes/usu.php LINE 321:
This gives me the SEO link that is formatted like so:PHP Code:
$p2[1] = str_replace(":","+",$p2[1]);
https://www.example.com/seo-page-nam...13b81846f.html
Then, in .htaccess, I added:
This splits the value and reassembles it with a colon, to feed it back to PHP that expects it. As in:Code:RewriteRule ^(.*)-p-([^\+]+)\+(.*)\.html$ index\.php?main_page=product_info&products_id=$2:$3&%{QUERY_STRING} [L]
https://www.example.com/index.php?ma...25ef413b81846f
Hopefully, I will only need to do this on Windows (test) server and should be unnecessary on the Unix Apache, come deployment time.
So, after some digging in, I found there are two problems. For an unknown reason, the USU 2.215 no longer passes the attributes to product link.
To fix that, in includes/classes/usu.php uncomment LINE 320. Like so:
toPHP Code:
$p2[1] = zen_get_prid($p2[1]);
Next problem will only affect you if you are running Apache on Windows (which in my case I was - for a test server).PHP Code:
// $p2[1] = zen_get_prid($p2[1]);
The colon is a disallowed character on Windows version of Apache, due to NTFS conventions. I instead opted for using a plus '+' character. I simply added to includes/classes/usu.php LINE 321:
This gives me the SEO link that is formatted like so:PHP Code:
$p2[1] = str_replace(":","+",$p2[1]);
https://www.example.com/seo-page-nam...13b81846f.html
Then, in .htaccess, I added:
This splits the value and reassembles it with a colon, to feed it back to PHP that expects it. As in:Code:RewriteRule ^(.*)-p-([^\+]+)\+(.*)\.html$ index\.php?main_page=product_info&products_id=$2:$3&%{QUERY_STRING} [L]
https://www.example.com/index.php?ma...25ef413b81846f
Hopefully, I will only need to do this on Windows (test) server and should be unnecessary on the Unix Apache, come deployment time.
Probably a dumb question but I suppose the new URL is supposed to show up in my Browser URL but it does not, neither for new or existing products.
If I run debug log the new URLs are created OK, if I copy one URL and paste it in my Browser then the correct product shows up.
If I look at my page source then the "link rel="canonical" href" shows the new URL in both languages available on my site.
Maybe I configured something wrong somewhere?
My site is https://www.simmar.ch/catalog, thanks for any help :)
Domain: homepromedical.com
The website cannot "Buy Now" when customers purchase from Manufacturer List.
As I described from this topic...
https://www.zen-cart.com/showthread....ufacturer-List
I suspected this plugin may trigger the problem (the Ultimate SEO version is 2.212).
The "index.html" is the reason of 404 error...
But, website using index.php for all actions.
Therefore, I think the rewrite may lead to this problem.
Bookmarks