Forums / Upgrading to 1.5.x / Broken links on new install, after removing simple seo urls

Broken links on new install, after removing simple seo urls

Started by contriveit on 30 Jan 2013, 10:12 AM · Views: 3,787

Results 1 to 15 of 15
30 Jan 2013, 10:12 AM
#1
contriveit avatar

contriveit

New Zenner

Join Date:
Sep 2012
Posts:
36
Plugin Contributions:
0

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/

This is my signature. There are many like it but this one is mine.

30 Jan 2013, 4:59 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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

Check the support threads for either simple seo urls or ultimate seo url
Ezpages have been an issue

Zen-Venom Get Bitten

30 Jan 2013, 6:36 PM
#3
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,816
Plugin Contributions:
4

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

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 :)

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

30 Jan 2013, 7:19 PM
#4
contriveit avatar

contriveit

New Zenner

Join Date:
Sep 2012
Posts:
36
Plugin Contributions:
0

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.

This is my signature. There are many like it but this one is mine.

30 Jan 2013, 10:56 PM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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

30 Jan 2013, 11:09 PM
#6
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,816
Plugin Contributions:
4

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

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

31 Jan 2013, 10:04 AM
#7
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

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

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.

20 years a Zencart User

1 Feb 2013, 1:50 AM
#8
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

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

contriveit:

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.

1 Feb 2013, 12:15 PM
#9
contriveit avatar

contriveit

New Zenner

Join Date:
Sep 2012
Posts:
36
Plugin Contributions:
0

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

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

# 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.

This is my signature. There are many like it but this one is mine.

1 Feb 2013, 12:28 PM
#10
contriveit avatar

contriveit

New Zenner

Join Date:
Sep 2012
Posts:
36
Plugin Contributions:
0

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!! :shocking:

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

/solved

This is my signature. There are many like it but this one is mine.

1 Feb 2013, 2:48 PM
#11
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

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

contriveit:

@ 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.Then simply install a virgin Zen Cart v1.5 on your new subdomain and your issue is resolved.. DON'T use ANY files from your live store..

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.

1 Feb 2013, 3:04 PM
#12
contriveit avatar

contriveit

New Zenner

Join Date:
Sep 2012
Posts:
36
Plugin Contributions:
0

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

Thanks DivaVocals, the issue has been resolved...

contriveit:

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!! :shocking:

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

/solved

This is my signature. There are many like it but this one is mine.

1 Feb 2013, 3:16 PM
#13
contriveit avatar

contriveit

New Zenner

Join Date:
Sep 2012
Posts:
36
Plugin Contributions:
0

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

sig check...

This is my signature. There are many like it but this one is mine.

2 Feb 2013, 7:12 PM
#14
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,816
Plugin Contributions:
4

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

DivaVocals:

Then simply install a virgin Zen Cart v1.5 on your new subdomain and your issue is resolved.. DON'T use ANY files from your live store..
Yup, if you have a "clean" install, do not include the .htaccess. Also the .htaccess posted is from an older version of "Ultimate SEO URLs".

If you plan to map some of the old requests to new requests, and are running into any issues, send me a PM with the details and when I get some time I'll take a look. Alternatively if you want to use "Ultimate SEO URLs" or "CEON URI Mapping", you should be able to install the latest versions without too many difficulties in a "clean" install of Zen Cart 1.5.

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

2 Feb 2013, 7:44 PM
#15
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

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

lhungil:

Yup, if you have a "clean" install, do not include the .htaccess.
lhungil:

If you plan to map some of the old requests to new requests, and are running into any issues, send me a PM with the details and when I get some time I'll take a look. Alternatively if you want to use "Ultimate SEO URLs" or "CEON URI Mapping", you should be able to install the latest versions without too many difficulties in a "clean" install of Zen Cart 1.5.nods in agreement:yes:

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.