Zen Cart Logo
Forums / All Other Contributions/Addons / Ceon URI Mapping (SEO)

Ceon URI Mapping (SEO)

Locked

Views: 472,310

Results 961 to 980 of 2,913
This thread is locked. New replies are disabled.
28 Dec 2009, 9:19 AM
#961
alan145 avatar

alan145

New Zenner

Join Date:
Aug 2009
Posts:
63
Plugin Contributions:
0

Ceon URI Mapping (SEO)

conor:

Hi Alan,

I'm guessing that your rewrite rule is blocking the folder the image is in or that you are allowing images to be rewritten (the standard example rules don't rewrite images).

Try checking the rules and the path to the image and add any necessary exclusions (in a similar manner to excluding control panel folders etc.). Or just make sure images aren't rewritten and the image's file name has an extension (.jpg, png etc.).

Happy Christmas!

All the best...

Conor
ceon

Hello Conor,
After further checking, I still have that problem.
I think my rewrite rule don't blocking the folder the image,
the following is my rewrite rules:

NOTE: Replace /shop/ with the relative web path of your catalog in the "Rewrite Base" line below:

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^jewellet.com$ [NC]
RewriteRule ^(.*)$ http://www.jewellet.com/$1 [R=301,L]

Don't rewrite any URIs ending with a file extension (ending with .[xxxx])

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

Don't rewrite admin directory

RewriteCond %{REQUEST_URI} !^/admin.* [NC]

Don't rewrite editors directory

RewriteCond %{REQUEST_URI} !^/editors.* [NC]

Don't rewrite help live directory

RewriteCond %{REQUEST_URI} !^/livezilla.* [NC]

Don't rewrite cPanel directories

RewriteCond %{REQUEST_URI} !/cpanel.* [NC]
RewriteCond %{REQUEST_URI} !/frontend.* [NC]

Handle all other URIs using Zen Cart (index.php)

RewriteRule (.*) index.php?%{QUERY_STRING} [L]

From Ultimate SEO URLs

RewriteRule ^print_page_p(.)$ index.php?main_page=print_page&products_id=$1&%{QUERY_STRING} [L]
RewriteRule ^(.
)_p(.).html$ index.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.
)_c([0-9]+)$ index.php?main_page=index&cPath=$2&%{QUERY_STRING} [L]
RewriteRule ^(.)_c([0-9]+)/(.)$ index.php?main_page=index&cPath=$2&display=$3&%{QUERY_STRING} [L]
RewriteRule ^(.)_c([0-9]+)/(.)/(.).html$ index.php?main_page=index&cPath=$2&display=$3&%{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 ^producttags/(.)$ index.php?main_page=producttags&letter=$1&%{QUERY_STRING} [L]
RewriteRule ^producttags/(.
)/([0-9]+).html$ 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]+).html$ index.php?main_page=wishlist&letter=$1&page=$2&%{QUERY_STRING} [L]

For Open Operations Info Manager

RewriteRule ^(.*)-i-([0-9]+).html$ index.php?main_page=info_manager&pages_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]
RewriteCond %{HTTP_HOST} ^jewellet.com$ [OR]

I found that, it seems that after installing Ceon Url, the web doesn't use some of the CSS files.
the problem page is http://www.jewellet.com/index.php?main_page=login
hope you can give me some indications.
Thanks and haappy a Gooooood Happy New Year!

28 Dec 2009, 11:53 AM
#962
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

globalmemory:

sorry but when i replace your file with an unmodified file then the preview link works, but when your modified file is used then it doesn't?

The files as modified by URI Mapping can't cause the behaviour you are talking about.. so you must have other modified files on your site which are causing this behaviour.

I'm sorry but I can't help you on this thread as you have too many customisations by the sound of it, you'll need a programmer to trace what is happening on your site.

Or you should revert to using a fresh version of Zen Cart and add your customisations back in one by one (including URI Mapping, which you will find works perfectly when installed on a clean/fresh version of Zen Cart).

All the best...

Conor
ceon

28 Dec 2009, 12:00 PM
#963
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

alan145:

I found that, it seems that after installing Ceon Url, the web doesn't use some of the CSS files.

Your problem is that you are using URI Mapping to have static URIs but your pages are still using relative paths to CSS files. You must change all your paths to using absolute/static URIs.

e.g.

/includes/templates/lightinthebox/css/style_imagehover.css

instead of

includes/templates/lightinthebox/css/style_imagehover.css

(Note the line starts with a slash and is the full path).

Within CSS files you must use absolute paths as well. So instead of

background:url(../images/icoBg.gif)

you must use

background:url(/includes/templates/lightinthebox/images/icoBg.gif)

alan145:

Thanks and haappy a Gooooood Happy New Year!

Thanks.. Happy New Year to you too!

All the best...

Conor
ceon

28 Dec 2009, 12:39 PM
#964
alan145 avatar

alan145

New Zenner

Join Date:
Aug 2009
Posts:
63
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

conor:

/includes/templates/lightinthebox/css/style_imagehover.css

instead of

includes/templates/lightinthebox/css/style_imagehover.css

ceon

Hello Conor,
Thank you so much for your answer, But after do that according to your indication, there is still the problem.
Now I don't know how to do it now.
any other possible cause of this problem?

28 Dec 2009, 1:23 PM
#965
chubbyboy avatar

chubbyboy

New Zenner

Join Date:
Oct 2008
Location:
Indonesia
Posts:
22
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

hello all master zen,

I have already installed ceon uri mapping and it turns out real good! thanks a lot!
but I need some help here since my sample shop cart have thousands of products I will need to do it locally and I tried copying the whole thing and backup db into my localserver in my pc, but when I am trying the links, its broken...

can someone please help?

thanks really appreciate that :)

28 Dec 2009, 1:52 PM
#966
globalmemory avatar

globalmemory

New Zenner

Join Date:
Sep 2008
Posts:
64
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

conor:

Hi,

The files as modified by URI Mapping can't cause the behaviour you are talking about.. so you must have other modified files on your site which are causing this behaviour.

I'm sorry but I can't help you on this thread as you have too many customisations by the sound of it, you'll need a programmer to trace what is happening on your site.

Or you should revert to using a fresh version of Zen Cart and add your customisations back in one by one (including URI Mapping, which you will find works perfectly when installed on a clean/fresh version of Zen Cart).

All the best...

Conor
ceon

The preview file has not been modified using any other mod. The only mod being used on this file is yours. Are you saying that another file related to the preview file is causing the problem?

28 Dec 2009, 2:57 PM
#967
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

alan145:

Thank you so much for your answer, But after do that according to your indication, there is still the problem.
Now I don't know how to do it now.
any other possible cause of this problem?

Please describe the problem again in detail, with a step by step guide to what is expected and what is going wrong. The page you have shown me looks fine to look at (I haven't tried to use it).

All the best..

Conor
ceon

28 Dec 2009, 3:00 PM
#968
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

chubbyboy:

I tried copying the whole thing and backup db into my localserver in my pc, but when I am trying the links, its broken...

Does your local PC have Apache installed and does it have mod_rewrite enabled? Does it have the necessary rewrite rule places in a VirtualHost directive or a .htaccess file?

You need to have a positive answer to all of those questions.. I'd guess that you probably don't have all the above set up properly.

Hope that helps.

All the best...

Conor
ceon

28 Dec 2009, 4:49 PM
#969
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 (SEO)

alan145:

Hello Conor,
Thank you so much for your answer, But after do that according to your indication, there is still the problem.
Now I don't know how to do it now.
any other possible cause of this problem?If you are referring to the buttons being cut off like the "Login" button on this page:
http://www.jewellet.com/index.php?main_page=login

This is a CSS issue, and not an issue being caused by this mod..

28 Dec 2009, 4:53 PM
#970
chubbyboy avatar

chubbyboy

New Zenner

Join Date:
Oct 2008
Location:
Indonesia
Posts:
22
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

conor:

Hi,

Does your local PC have Apache installed and does it have mod_rewrite enabled? Does it have the necessary rewrite rule places in a VirtualHost directive or a .htaccess file?

You need to have a positive answer to all of those questions.. I'd guess that you probably don't have all the above set up properly.

Hope that helps.

All the best...

Conor
ceon

Hi thanks for answering,

I had an appserv installed with mod_rewrite enabled. and I just used the .htaccess from the live sites..

here is the .htaccess code :

RewriteEngine On

# Don't rewrite any URIs ending with a file extension (ending with .[xxxx])
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/admin.* [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/editors.* [NC]
# Don't rewrite cPanel directories
RewriteCond %{REQUEST_URI} !/cpanel.* [NC]
RewriteCond %{REQUEST_URI} !/frontend.* [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule (.*) index.php?%{QUERY_STRING} [L]

I just copied from my live site and put it into my local folders and it wont run, links seems to be broken..

example :

live site links : https://www.abc.com/examples -> is running good
offline sites : https://www.abc.com/examples -> page not found and plus when I hover the links it chop off the rest of the links,

like it should be : http://localhost/www.abc.com/blablablabla
become : http://localhost/blablablabla

can you please tell me what did i go wrong?

thank you very much

28 Dec 2009, 4:59 PM
#971
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

chubbyboy:

like it should be : http://localhost/www.abc.com/blablablabla
become : http://localhost/blablablabla

can you please tell me what did i go wrong?

Yes, you can't use two different directories with the same database.

You can have:

http://www.abc.com/blablablabla

and

http://localhost/blablablabla

You can't have

http://localhost/www.abc.com/blablablabla

This is where you are misunderstanding how things work and why things are going wrong.

You must set up a site on your local server with a unique domain name. E.g.

http://www.abc.local

You can add https://www.abc.local into your hosts file so it maps to localhost (127.0.0.1) and have Apache watch the localhost address (127.0.0.1) with NameVirtualhost * etc.

If you don't know what that means I can't help you here.. please search the internet for guides on setting up Apache on a local machine.

Hope that helps!

All the best...

Conor
ceon

28 Dec 2009, 5:10 PM
#972
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

How are you?

Hope you're having a good Christmas! :)

DivaVocals:

If you are referring to the buttons being cut off like the "Login" button on this page:
http://www.jewellet.com/index.php?main_page=login

This is a CSS issue, and not an issue being caused by this mod..

I agree.. it's not the module.. the image is being loaded fine, as is the CSS file for the page.

In fact, I can tell you exactly why the login image, which is 100px wide, isn't being fully displayed on that page.. its input tag has a style="width: 80px;" attribute!

Please be more careful in future Alan when you are posting for support for something! :)

Thanks for helping yet again DivaVocals! :)

All the best...

Conor
ceon

28 Dec 2009, 5:57 PM
#973
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 (SEO)

Had a GREAT Christmas.. (got a USB turntable!! whoo hoo!!) How about you??

Happy to throw in my three cents when it's relevant.. :smile:

conor:

Hi,

How are you?

Hope you're having a good Christmas! :)

I agree.. it's not the module.. the image is being loaded fine, as is the CSS file for the page.

In fact, I can tell you exactly why the login image, which is 100px wide, isn't being fully displayed on that page.. its input tag has a style="width: 80px;" attribute!

Please be more careful in future Alan when you are posting for support for something! :)

Thanks for helping yet again DivaVocals! :)

All the best...

Conor
ceon

29 Dec 2009, 12:24 AM
#974
alan145 avatar

alan145

New Zenner

Join Date:
Aug 2009
Posts:
63
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

conor:

Hi,

How are you?

Hope you're having a good Christmas! :)

I agree.. it's not the module.. the image is being loaded fine, as is the CSS file for the page.

In fact, I can tell you exactly why the login image, which is 100px wide, isn't being fully displayed on that page.. its input tag has a style="width: 80px;" attribute!

Please be more careful in future Alan when you are posting for support for something! :)

Thanks for helping yet again DivaVocals! :)

All the best...

Conor
ceon
Hello Conor and DivaVocals,
I found the css file which defined as below:
.button_create_account {
background:url(../images/theme-1/button_new_account.gif) no-repeat;
display:block;
width:179px;
height:26px;
border:0 none;
line-height:0;
text-indent:-9999px;
font-size:0;
cursor:pointer;
so actually, the image width is 179px, but now it only 80 px.
I have try to add the /includes/templates/lightinthebox/images
in the css files.
but it seems that, the button can't diaply completely either.
how to edit input tag?
Thank you.
Alan

29 Dec 2009, 12:40 AM
#975
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 (SEO)

You really should start another thread to get assistance on this as it's not related to the Ceon SEO module.. Also make sure you wrap any code or CSS in your posts with the "code" tags so your code doesn't get smilies inserted into it inadvertently.

Your CSS without code tags:

.button_create_account {
background:url(../images/theme-1/button_new_account.gif) no-repeat;
display:block;
width:179px;
height:26px;
border:0 none;
line-height:0;
text-indent:-9999px;
font-size:0;
cursor:pointer;

Your CSS with code tags

.button_create_account {
     background:url(../images/theme-1/button_new_account.gif) no-repeat;
     display:block;
     width:179px;
     height:26px;
     border:0 none;
     line-height:0;
     text-indent:-9999px;
     font-size:0;
     cursor:pointer;
```> **alan145:**
>
> Hello Conor and DivaVocals,
> I found the css file which defined as below:
> .button_create_account {
>     background:url(../images/theme-1/button_new_account.gif) no-repeat;
>     display:block;
>     width:179px;
>     height:26px;
>     border:0 none;
>     line-height:0;
>     text-indent:-9999px;
>     font-size:0;
>     cursor:pointer;
> so actually, the image width is 179px, but now it only 80 px.
> I have try to add the /includes/templates/lightinthebox/images
> in the css files.
> but it seems that, the button can't diaply completely either.
> how to edit  input tag?
> Thank you.
> Alan
29 Dec 2009, 2:51 AM
#976
chubbyboy avatar

chubbyboy

New Zenner

Join Date:
Oct 2008
Location:
Indonesia
Posts:
22
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

conor:

Hi,

Yes, you can't use two different directories with the same database.

You can have:

http://www.abc.com/blablablabla

and

http://localhost/blablablabla

You can't have

http://localhost/www.abc.com/blablablabla

This is where you are misunderstanding how things work and why things are going wrong.

You must set up a site on your local server with a unique domain name. E.g.

http://www.abc.local

You can add https://www.abc.local into your hosts file so it maps to localhost (127.0.0.1) and have Apache watch the localhost address (127.0.0.1) with NameVirtualhost * etc.

If you don't know what that means I can't help you here.. please search the internet for guides on setting up Apache on a local machine.

Hope that helps!

All the best...

Conor
ceon

Hi thanks for the explanations, so i will need to setup exactly the same as the live site in order to let it work?

let me get the tutorials for that.. I have read the articles before but I just know that has always been causing the trouble.

thanks! cheers :clap:

29 Dec 2009, 2:55 AM
#977
alan145 avatar

alan145

New Zenner

Join Date:
Aug 2009
Posts:
63
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Hello DivaVocals,
Really confused about that.
1.Before installing the Ceon URI Mapping (SEO), all buttons display OK.
2. after installing Ceon URI Mapping, the buttons can't display completely.
3. I have checked the CSS, the defined width is 179px, but actually displayed width is 80 ps.
so I am thinking, after using Ceon URI Mapping, the web page can't use the css files.
4. then I check and do according to conor
/includes/templates/lightinthebox/css/style_imagehover.css
instead of
includes/templates/lightinthebox/css/style_imagehover.css

background:url(../images/icoBg.gif)
instead of
background:url(/includes/templates/lightinthebox/images/icoBg.gif)

the prooblem is still there.
Alan

29 Dec 2009, 4:16 AM
#978
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 (SEO)

Seriously, this is NOT an issue with this module.. It's either a stylesheet issue or as Conor pointed it's because you have an inline style hardcoded into the pages that sets the button width to a value less than the actual width of the button image. Either way, this REALLY isn't an issue with this mod.. The fact that this issue came to light after you installed this mod is PURELY a coincidence.

If you take my suggestion and create a new thread, you will get better responses which will help address your exact issue. Try posting this in the CSS forum. I promise you that's where your answer is..

alan145:

Hello DivaVocals,
Really confused about that.
1.Before installing the Ceon URI Mapping (SEO), all buttons display OK.
2. after installing Ceon URI Mapping, the buttons can't display completely.
3. I have checked the CSS, the defined width is 179px, but actually displayed width is 80 ps.
so I am thinking, after using Ceon URI Mapping, the web page can't use the css files.
4. then I check and do according to conor
/includes/templates/lightinthebox/css/style_imagehover.css
instead of
includes/templates/lightinthebox/css/style_imagehover.css

background:url(../images/icoBg.gif)
instead of
background:url(/includes/templates/lightinthebox/images/icoBg.gif)

the prooblem is still there.
Alan

29 Dec 2009, 2:01 PM
#979
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi Alan,

It's not your CSS which is at fault.. it's the code in your template.

Look at the source of your templates for the line I posted previously

style="width: 80px;"

All the talk about differences between when you installed the module and when you didn't are unfortunately user error on your part, and merely coincidences.

Please start another thread about this if you need further help, you can link to it from here if you like.

All the best...

Conor
ceon

29 Dec 2009, 2:57 PM
#980
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 (SEO)

conor:

Hi Alan,

It's not your CSS which is at fault.. it's the code in your template.

Look at the source of your templates for the line I posted previously

style="width: 80px;"

All the talk about differences between when you installed the module and when you didn't are unfortunately user error on your part, and merely coincidences.

Please start another thread about this if you need further help, you can link to it from here if you like.

All the best...

Conor
ceonActually there are SEVERAL inline styles like this which are the issue.. (I took a quick tour through his site last night..) Either way, CLEARLY the issue is not with this mod..