Zen Cart Logo
Forums / All Other Contributions/Addons / Ceon URI Mapping v4.x

Ceon URI Mapping v4.x

Views: 451,823

Results 341 to 360 of 2,454
29 Jan 2012, 7:35 AM
#341
reefdvrjim avatar

reefdvrjim

New Zenner

Join Date:
Apr 2009
Posts:
7
Plugin Contributions:
0

Ceon URI Mapping v4.x

Hello,

I've looked through the FAQ's and this thread to see how to add .php to all the URI's. We are migrating to a new platform and all the files indexed with the search engine are with a .php extension.

right now:
caligirljewelry.com/bracelet

looking for:
caligirljewelry.com/bracelet.php

Sincerely,
Jim

29 Jan 2012, 10:53 AM
#342
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping v4.x

Hi Jim,

reefdvrjim:

I've looked through the FAQ's and this thread to see how to add .php to all the URI's. We are migrating to a new platform and all the files indexed with the search engine are with a .php extension.

The technology identifier should not be added to the end of the URI like that. I.e. you shouldln't end URIs in HTML or php.. URIs are locations and technology specifiers should only be used to request a particular technological output for a location.

So you should keep all your new URIs as /bracelet etc.

However, to stop your old links breaking you can create historical URIs to redirect from your old ones, like from /bracelet.php to /bracelet

You'll then need to adjust the rewrite rule to allow the .php extension to be handled.

This is covered in the section of the documentation "Modifying the rule to allow URI mappings to be used which end with a particular file extension (e.g. “.html”)."

Not sure how you missed that one :)


For example, to allow the mapping of URIs ending in “.html”, “.htm” and “.php”, the following RewriteCond from the example rule should be changed from:

RewriteCond %{REQUEST_URI} !.[a-zA-Z]{2,5}$

to:

RewriteCond %{REQUEST_URI} !.[a-zA-Z]{2,5}$ [OR]
RewriteCond %{REQUEST_URI} .(html|htm|php)$ [NC]

So for you:

RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,5}$ [OR]
RewriteCond %{REQUEST_URI} \.php$ [NC]

All the best..

Conor
ceon

30 Jan 2012, 1:47 PM
#343
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

I don't seem to be able to get the mod to work....

I have installed as directed, and copies all the file and modified all the files as directed, installed the databse and got installation complate and all checks complete etc and passed, but when I change a URL i get a 404 error.

I have changed the htaccess file as the install pages says and tired with and without the / for index but still no joy.

contacted my host to see if there is a problem with the rewrite and they say it should work looking at the code. in the error log i get a file not found error on the URL

any ideas

Version 4.0.2 installed on 1.3.9h

30 Jan 2012, 2:43 PM
#344
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping v4.x

Hi Simon,

How are you? It's been a while!

kitcorsa:

any ideas

Version 4.0.2 installed on 1.3.9h

Everything you've described sounds like you've done all the right things so it must be a server issue.

Send me admin and FTP details and I'll take a look.

The latest version is 4.0.7 by the way, so not sure why you installed 4.0.2?

4.0.8 is just about ready for release but 4.0.2 or 4.0.7 should still have worked fine for you so I'll need to debug your actual site.

All the best..

Conor
ceon

30 Jan 2012, 3:24 PM
#345
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

i installed the older version as this was the version marked for 1.3.9 as i not upgraded yet as all my mods now compatible with the new zen-cart yet... so just sticking to want i know works.

Managed to get the rewrite to work but still a little bugged, got the URL to rewrite on the product i changed for a test but still seems to want to rewrite my admin directory as well and images dont display and CSS all gone etc, so something going on with the rewrite rule I thinks, will plud on and see if i can figure it out

31 Jan 2012, 10:35 AM
#346
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

i have now upgraded to 4.0.7

i found that all the core changes for 4.0.2 and 4.0.7 were all the same and didn't need uploading, just upload the files in the files folder.

Still can't get it to work though, installed, configed, turned on, created URL, visit page and there are no images or CSS or java, basically just text and takes about 3 mins to load. Also when visiting the admin area it forwards me to a page not found page.

checked the htaccess and i cant see anything wrong and tired severial different ways to get the rewrite rule to ignore the admin area etc but still no joy.

31 Jan 2012, 10:39 AM
#347
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping v4.x

Hi Simon,

kitcorsa:

i found that all the core changes for 4.0.2 and 4.0.7 were all the same and didn't need uploading, just upload the files in the files folder.

Yes, I designed the software that way on purpose.. core changes aren't needed between versions because of the way I rewrote the software for version 4.

As for you problems.. I offered to help previously, my offer still stands. There's nothing else I can say here, nothing has changed since I last wrote.

kitcorsa:

checked the htaccess and i cant see anything wrong and tired severial different ways to get the rewrite rule to ignore the admin area etc but still no joy.

Obviously there is a serious problem with your server. It sounds like needs fixed, not Ceon URI Mapping or its rewrite rule.

All the best..

Conor
ceon

31 Jan 2012, 10:39 AM
#348
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

It should NOT be placed in a .htaccess file within the Zen Cart folder, the rewrite rule below is for the site root's .htaccess file, not Zen Cart's .htaccess file. Make sure you place it in the .htaccess file in the above folder!

what if my store is in the root, do i replace the zencart original HTaccess??

31 Jan 2012, 10:54 AM
#349
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping v4.x

Hi,

kitcorsa:

what if my store is in the root, do i replace the zencart original HTaccess??

A fresh version of Zen cart doesn't have a .htaccess file in its root, there is no "original" Zen Cart .htaccess to replace.

It's probably better only ever to add the rule to an existing .htaccess file, not replace your existing .htaccess file.

Hope that helps.

All the best...

Conor
ceon

31 Jan 2012, 10:14 PM
#350
pepperfire avatar

pepperfire

New Zenner

Join Date:
Apr 2008
Posts:
93
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Conor, HELP!!

I suppose I could read through the 35 pages of posts on here, but easier and quicker I think to just post here.

I've installed the mod. It works great... Except that I'm working on a subdirectory (root directory currently houses my live site).

Here's my site: http://www.peppermaster.com/peppermaster-shop

The problem is that when the EZ pages or the product are called from the db, it's calling the root peppermaster.com db. I need it to call from the subdirectory db.

Where should I be looking for what to code this with the right addresses so I can move forward?

While I wait for what I hope is a quick response, I'll start reading the thread.

Thanks

31 Jan 2012, 10:28 PM
#351
pepperfire avatar

pepperfire

New Zenner

Join Date:
Apr 2008
Posts:
93
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Dang... about several pages in I got your message about never testing from a subdirectory. So I went in to my admin to either disable or uninstall the mod and now I'm stuck...

What is the easiest way for me to disable the module so I can finish my testing?? :wacko:

I'm truly hoping you're not going to tell me to start over again from scratch.

31 Jan 2012, 10:30 PM
#352
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping v4.x

Hi,

Pepperfire:

I've installed the mod. It works great... Except that I'm working on a subdirectory (root directory currently houses my live site).

Don't use a subdirectory for test sites.

Use a subdomain.

There's your quick answer. :)

If you search the thread you will indeed find I've said this quite a few times here.

It's the only solution I will advocate so just do ahead and move to a subdomain instead of a subdirectory. Subdirectories for test sites are unprofessional.

All the best..

Conor
ceon

31 Jan 2012, 10:32 PM
#353
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping v4.x

Hi,

Pepperfire:

What is the easiest way for me to disable the module so I can finish my testing?? :wacko:

In your case, probably to remove the rewrite rule from the .htaccess file, so the original site can work properly again and you can access your test site but without URI mapping occuring?

If that doesn't help please be aware that it will be at least 12 hours for a response from me, I won't be back here tonight.

All the best..

Conor
ceon

31 Jan 2012, 10:48 PM
#354
pepperfire avatar

pepperfire

New Zenner

Join Date:
Apr 2008
Posts:
93
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

conor:

Hi,

In your case, probably to remove the rewrite rule from the .htaccess file, so the original site can work properly again and you can access your test site but without URI mapping occuring?

If that doesn't help please be aware that it will be at least 12 hours for a response from me, I won't be back here tonight.

All the best..

Conor
ceon

Thrilled to pieces that you answered so quickly. I found the on-off switch and indeed the problem is that I was working in a sub-directory and not a result of the .htaccess rule (I took that out and found it changed nothing).

Knowing already from previous version that I love this mod. I'll leave it off until the site is almost ready to go live.

I don't think I'll have trouble until I go live. Thanks for now. :)

31 Jan 2012, 11:11 PM
#355
divavocals avatar

divavocals

Totally Zenned

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

Re: Ceon URI Mapping v4.x

Pepperfire:

Thrilled to pieces that you answered so quickly. I found the on-off switch and indeed the problem is that I was working in a sub-directory and not a result of the .htaccess rule (I took that out and found it changed nothing).

Knowing already from previous version that I love this mod. I'll leave it off until the site is almost ready to go live.

I don't think I'll have trouble until I go live. Thanks for now. :)
I need to post this for folks following these support threads so they do not get the wrong idea.. The highlighted statement is not completely true.. Ceon does indeed work in a sub directory if configured correctly.. (be happy to show you examples of where this is true..)

Something in YOUR setup was causing the problem.. It's a waste of time to try and figure out what the issue was though seeing that this is just a test site.. There's no need necessarily to test the URI mod.. Hence why turning it off was a good quick suggestion for you..

1 Feb 2012, 1:06 PM
#356
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

All working now thank to Conor

Save your self time and effort and ask conor for support then send him a donation :-D

i tried for 24 hours and got stuck, conor took 5 mins to fix my issue!

Also look at buying other of ceons moduals, i live by the sagepay modual!

2 Feb 2012, 4:55 PM
#357
apogeerockets avatar

apogeerockets

Zen Follower

Join Date:
Aug 2011
Posts:
104
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Hey Conor - URIs are working great, except for causing a couple of issues on our EZ Pages. When i disable URI Mapping, enter the URL for a particular EZ page, the next/back buttons show, as does the TOC. When URI mapping is enabled, they vanish. Is this normal behavior or did I break something somewhere?

2 Feb 2012, 5:36 PM
#358
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping v4.x

Hi,

apogeerockets:

Hey Conor - URIs are working great, except for causing a couple of issues on our EZ Pages. When i disable URI Mapping, enter the URL for a particular EZ page, the next/back buttons show, as does the TOC. When URI mapping is enabled, they vanish. Is this normal behavior or did I break something somewhere?

No, that's not normal, so you must have broken something somewhere.

Check the templates to see if they maybe don't have a slash at the start of the links to the button images or if the base href tag is missing for the page somehow.

I'm afraid that's all I can really say to look at.

At least you know it's not normal behaviour or a problem with the software!

All the best...

Conor
ceon

2 Feb 2012, 8:03 PM
#359
deckandpool avatar

deckandpool

New Zenner

Join Date:
Jan 2012
Posts:
10
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Hello o o o o o

I am running 139h and I have installed the ceon module and the image handler3,

everything seems to be going ok except i get a 404 address when i try and access

admin>tools>admin settings

where would i begin to look for a problem

stumped again

thanks

colin

3 Feb 2012, 11:51 AM
#360
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping v4.x

Hi,

deckandpool:

admin>tools>admin settings

where would i begin to look for a problem

Just that one page is broken?

Nothing to do with Ceon URI Mapping then as it doesn't apply for the admin.

So try looking elsewhere. Compare all your files against a fresh version of Zen Cart's.

If you have any further trouble please start a new thread.

Good luck!

All the best..

Conor
ceon