Thanks, everybody. Now, I enable the SSL by configure files defined
Printable View
Thanks, everybody. Now, I enable the SSL by configure files defined
Is anybody has used this plugin with jquery moblie? I got 404 error with jquery mobile. But I don't know whether this plugin conflicts with jquery mobile, or there are codeing error when I modified? On address bar, if I input "index.php?main_page=index&cPath=4", page load as nomal. If I input as "name-c-4.html" fomat, 404 was returned.
I have Ultimate URL's installed on zen cart v1.5.5a. But my category and subcategory page URLs could be a little cleaner. The product and EZ pages show just perfect. I suspect it has to do with my .htaccess code but I don't know how to clean them up. For example here is one of my sloppy links:I would like to remove theCode:www.myURL.com/stock-wings-c-14_2/?page=StockWings
at the end of each of my category URL's to make it look clean like this: I tested this URL: http://www.myURL.com/stock-wings-c-14_2/ and the category page shows just fine so I don't get why the additional information bloat is added. This is my .htaccess code:Code:?page=StockWings
Again all other pages have clean URL's its just the category and subcategory pages that look sloppy. Any ideas please?Code:# Common directives
###############################################################################
# NOTE: Replace /shop/ with the relative web path of your catalog in the "Rewrite
Base" line below:
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
###############################################################################
# Start Ultimate SEO URLs
###############################################################################
# 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]
# All other pages
# Don't rewrite real files or directories
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index\.php?main_page=$1&%{QUERY_STRING} [L]
i do not believe your problem is with your .htaccess file. the problem is with the creation of the category links.
i would look over includes/classes/usu.php. my guess is that is where the problem resides, not in the htaccess file.
if the site is live, a link to it would be more helpful.
good luck.
OK here is a link to my website http://www.aviationinsignia.com/insi...?page=Insignia. It seems as if only the top menu is making the links this way. Template issue? The lower menu (on this same page) does not seem to add these additional characters. I looked at my template common folder> tpl_drop_menu.php file and did not see where this was adding these characters.
if you are convinced that is the script that is generating those links, i'm "thinking" that you have a couple of files called:
includes/classes/categories_ul_generator.php
includes/classes/categories_ul_generator_menu_style_2.php
in my setup, the culprit seems to be in the second script:
i would change it to:Code:
<a href="' . zen_href_link(FILENAME_DEFAULT, 'cPath=' . $category_link . '&page='. $category['name'])
please note, that i did not post the WHOLE line of code, just the problem part...Code:
<a href="' . zen_href_link(FILENAME_DEFAULT, 'cPath=' . $category_link)
i "think" that may be your problem.... but it's a wild (educated) guess...
no warranties, guarantees, etc...
best.
carlwhat, I can see the work and effort you put into helping me and thank you for your time, its much appreciated! Your solution worked. In this file: includes>classes> categories_ul_generator_menu_style_2.php around line #83 and 84 I found this code:
Per you great instructions I changed to this:Code:'<a href="' . zen_href_link(FILENAME_DEFAULT, 'cPath=' . $category_link . '&page='. $category['name']) . '">';
Problem solved. It didn't seem like the template override was working for this file but maybe it was cache. So I had to change this code in both the over-ride folder and core folder and make a note in case of future updates. Anyway, works perfectly. Again, thank you very much!Code:'<a href="' . zen_href_link(FILENAME_DEFAULT, 'cPath=' . $category_link) . '">';
There is no "override" for the /includes/classes folder. Alterations to files in that folder must be made directly.
Thank you, that's good to know.