Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Sep 2012
    Posts
    36
    Plugin Contributions
    0

    bug Broken links on new install, after removing simple seo urls

    I was using zen cart 1.3.9 with (simple seo urls or ultimate seo url). under my root domain contriveitnow.com. I decided to start fresh with the upgraded zen cart 1.5 under a sub-domain contrive-it.net.

    I deleted all files, DB, and folders under the root domain but overlooked deleting the .httaccess file. Without realizing this, I proceeded to install the 1.5 upgrade to my sub-domain.

    The install went fine but I realized my urls were still being rewritten. At first I thought it was a new feature in 1.5 but alas it wasnt. It turns out the .httaccess that was left in the root was rewriting my urls.

    This was not a big deal as I would like to have my urls rewritten, however it seems to be causing broken links on some of my ezpage links. (contact us, privacy, T&C, Site Map, Featured, Specials) But strangely enough, not the links to pages I've made (About Us, Downloads, Credits)

    So far, I have tried to delete and edit the .httacces file but that causes other links to be broken. Any help would be greatly appreciated and perhaps even compensated.

    http://www.contrive-it.net/

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Broken links on new install

    Check the support threads for either simple seo urls or ultimate seo url
    Ezpages have been an issue
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Broken links on new install

    If you are using simple seo urls - it is not currently fully compatible with Zen Cart 1.5. You may want to look into switching to "CEON URI Mapping" (no anchors on the end of URLs) or "Ultimate SEO URLs" (anchors such as -p-123 on the end of URLs) depending upon your needs.

    If you had "Ultimate SEO URLs" installed, you should remove any legacy (<= 2.150) versions and upgrade to the latest version (currently 2.212).

    If you need additional help, please post in the support thread for "Ultimate SEO URLs" as recommended by kobra. If you do, please include a link to the "test" 1.5 site :)

  4. #4
    Join Date
    Sep 2012
    Posts
    36
    Plugin Contributions
    0

    Default Re: Broken links on new install

    I am not using either of the modules with the fresh install of 1.5. The problem is that the htaccess file was left behind in my root from a previous install.

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Broken links on new install, after removing simple seo urls

    I am not using either of the modules with the fresh install of 1.5. The problem is that the htaccess file was left behind in my root from a previous install.

    So far, I have tried to delete and edit the .httacces file but that causes other links to be broken.
    If it is a "FRESH" install - there should be no links that are broken

    Delete the htaccess file

    Then post any broken links you find
    Zen-Venom Get Bitten

  6. #6
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Broken links on new install

    If you want to keep the "human readable" links you will need to install the module. Otherwise the website will be generating and presenting native Zen Cart links to website visitors and search engines.

    If you were using "Ultimate SEO URLs" you can leave the old .htaccess file in place and let the canonical links tell search engines the new URLs to use (default ones generated by Zen Cart). Depending on the version you had installed you may need to make some minor changes to the last RewriteRule or remove the last rule (handles custom pages - not EZ-Pages). Website visitors and search engines will see the new URLs on your website. Keep in mind this will not work until you move the testing site into the location where the production site is currently.

    If you were using a different module... well... you will have some problems with the .htaccess file in place and should just remove the .htaccess file.
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  7. #7
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,262
    Plugin Contributions
    3

    Default Re: Broken links on new install

    Just delete the htaccess file that was created by the URL re-writer. As kobra said, there is no htaccess file in the root of a native installation of zencart.

    Unless there is a really compelling reason (business reason) to rewrite url's then they are best left alone. There is zero "SEO" advantage to using them, and these modules generally create far more problems than they "claim" to solve.

    In 99% of cases, you will never need to render the actual URL--- in practically ALL forms of linking, the url is buried in a <a href> hyperlink attached to a text or image link.

    So why put your business at risk with these completely unnecessary "seo" modules?

    My advice... keep well away from these URL re-writers... they serve no useful purpose in reality.
    19 years a Zencart User

  8. #8
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Broken links on new install

    Quote Originally Posted by contriveit View Post
    I am not using either of the modules with the fresh install of 1.5. The problem is that the htaccess file was left behind in my root from a previous install.
    If your v1.5 Zen Cart install is in a sub-domain, then you shouldn't have an issue with the htaccess file from your live site.. That said this is based on my own experience with Ceon URI. (I JUST set up a test bed clone of my client's site using a subdomain and am not experiencing any issues with this setup at all) Based on what you posted, it doesn't sound like your sub-domain setup is correct.. a subdomain URL would typically look like this http://subdomainname.domain.com. You stated that your sub-domain is http://www.contrive-it.net/

    You don't say/know which re-writer module you are using and knowing this is a BIG key for anyone giving you any useful advice.. If it is SSU or the older versions of Ultimate SEO I cannot speak on how SSU or Ultimate work.. as lhungil stated SSU is not compatible with the current version of Zen Cart and it appears to be an abandoned module.. Though I've not used it, the LATEST version of Ultimate SEO seems to be better written and maintained these days than older version of the module (thanks to the efforts of lhungil).
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  9. #9
    Join Date
    Sep 2012
    Posts
    36
    Plugin Contributions
    0

    Default Re: Broken links on new install

    First and foremost, I'd like to thank everyone for their input. There still seems to be a mis-communication about my setup so i'll try to clarify and respond to each of your suggestions.

    @ kobra: I have deleted the .htaccess in my root directory. The same links plus more are broken as before (contact, privacy, t&c, sitemap) but even worse is they don't redirect to the main page but instead return as 404. In addition, all sidebox category links are now 404 as well.

    I'm not a keen as you guys are on this butmy guess is when I did the fresh install of 1.5 to my sub-directory/domain, it installed using rewritten urls as directed by the leftover httaccess file that was forgotten in the root.

    Here is the leftover .htaccess

    Code:
    # Use PHP5 Single php.ini as default
    AddHandler application/x-httpd-php5s .php
    ##### NOTE: Replace /shop/ with the relative web path of your catalog in the "Rewrite Base" line below:
    
    # For security reasons, Option followsymlinks cannot be overridden.
    #Options +FollowSymLinks
    Options +SymLinksIfOwnerMatch
    RewriteEngine On
    RewriteBase /
    
    # From Ultimate SEO URLs
    RewriteRule ^(.*)-p-(.*).html$ index\.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L]
    
    # Normal Ultimate SEO URLs (disable if using ADD_PRODUCT_CAT)
    #RewriteRule ^(.*)-c-(.*).html$ index\.php?main_page=index&cPath=$2&%{QUERY_STRING} [L]
    
    # ADD_PRODUCT_CAT Ultimate SEO URLs (disable if not using ADD_PRODUCT_CAT)
    RewriteRule ^(.*)-c-(.*).html$ $1-c-$2/ [R=301,L]
    RewriteRule ^(.*)-c-([^/]+)$ %{REQUEST_URI}/ [R=301,L]
    RewriteRule ^(.*)-c-([^/]+)/$ index\.php?main_page=index&cPath=$2&%{QUERY_STRING} [L]
    
    RewriteRule ^(.*)-m-([0-9]+).html$ index\.php?main_page=index&manufacturers_id=$2&%{QUERY_STRING} [L]
    RewriteRule ^(.*)-pi-([0-9]+).html$ index\.php?main_page=popup_image&pID=$2&%{QUERY_STRING} [L]
    RewriteRule ^(.*)-pr-([0-9]+).html$ index\.php?main_page=product_reviews&products_id=$2&%{QUERY_STRING} [L]
    RewriteRule ^(.*)-pri-([0-9]+).html$ index\.php?main_page=product_reviews_info&products_id=$2&%{QUERY_STRING} [L]
    RewriteRule ^(.*)-ezp-([0-9]+).html$ index\.php?main_page=page&id=$2&%{QUERY_STRING} [L]
    
    # All other pages
    # Don't rewrite real files or directories
    RewriteCond %{REQUEST_FILENAME} !-f [NC]
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*).html$ index\.php?main_page=$1&%{QUERY_STRING} [L]
    
    # Handle when a resource is not found (404 Error Page)
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index\.php?main_page=page_not_found&%{QUERY_STRING} [L]
    And here is a rough mockup of my structure:

    root: contriveitnow.com
    had old 1.39 cart in it but I deleted all files, DB and folders "except" htaccess

    under root is my subdomain directory /contrive-it.net
    Installed new 1.5 here with a new DB but without realizing the htaccess file was left behind. DOH!!

    @lhungil: I prefer to have the url rewrite and intended to install a module on my fresh 1.5 but to my surprise, it was already being done. Unfortunatly to my surprise as well is the broken links. I'm thinking an edit of the leftover htacess file is in order but I have no clue what or where. All I know is if I delete it, things get worse. On a side note, Im thinking a new install of the useo may do the trick.


    @Schoolboy: I tried deleting it but matters got worse as stated above. I read about rewritten urls not having any credit to SEO but I have evidence to the contrary. IMO any time a key word can be put into the url, its a good thing. Maybe some SE will ignore it but I have reports that tell me some do not. Besides, I like having the "human readability" factor and find it easier to make internal/external links this way.

    @ DivaVocals: I'm not using either SSU or USEO in my new 1.5 install into a subdomain. My urls are being rewitten by a leftover htaccess file from the original install on my root.

    I'm not sure if you're aware but nowadays, hosts can hide a subdomain. Of course one can access my subdomain by typing "contrive-it.contriveitnow.com". But, by use of some magic tricks, my host has made it a lot easier. All one has to do is type "contrive-it.net" and the average Joe will never know its not the TLD.

    -----------
    Thanks again everyone! I appreciate your valuable input and hope you may have more for me. I've been putting this off way to long. I will soon be working on my link juice but need to have this issue solve before I can do that.

  10. #10
    Join Date
    Sep 2012
    Posts
    36
    Plugin Contributions
    0

    Idea or Suggestion Re: Broken links on new install, after removing simple seo urls

    WOW... OK, Scratch everything. I'd deleted the httacess file as requested and matters got worse. So, I went to reload it and mistakeingly up'd it to the my subdomain. Guess what?.... BAM, it works now!!

    I still want to thank everyone again for your time. I always find good support here.

    /solved

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Simple SEO URL, Ultimate SEO URLs, Ceon URI Mapping SEO
    By pizza392 in forum All Other Contributions/Addons
    Replies: 13
    Last Post: 21 Jan 2015, 10:49 AM
  2. v151 Simple SEO URLs - downloaded the latest - Install instructions??
    By SilverHD in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 2 Jan 2014, 12:59 AM
  3. v151 After installing Power SEO URLs a Hashtag shows up in the new links
    By Leialoha in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 23 Nov 2013, 03:08 AM
  4. links are not working after install Simple SEO url
    By ratikanta in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 4 Sep 2010, 10:29 AM
  5. question about moving from Magic Seo Urls to Simple Seo Urls
    By zubenubi in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 3 Sep 2010, 12:44 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