Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
Gerjan
Hi Conor,
As I mentioned by PM, everything is working fine. But have a "little":smile: problem.
I was working a friends webshop and he is using an extra domain name. In the htaccess there is this redirect for it but when uri mapping rules are active, this redirect doesn't work. Here's the htaccess (as you can see uri-mapping rules are inactive now):
----------------------------------
RewriteEngine On
#Rule-0
# Don't rewrite any files ending with .[xxxx], except for scripts/HTML files
#RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$ [OR]
#RewriteCond %{REQUEST_URI} \.(php|xml|html|htm|aspx)$ [NC]
# Don't rewrite cpanel directories
#RewriteCond %{REQUEST_URI} !/cpanel.* [NC]
#RewriteCond %{REQUEST_URI} !/frontend.* [NC]
# Don't rewrite admin directory
#RewriteCond %{REQUEST_URI} !/admin.* [NC]
# Don't rewrite editors directory
#RewriteCond %{REQUEST_URI} !^/editors.* [NC]
# Don't rewrite payment pages/callback handlers
#RewriteCond %{REQUEST_URI} !/googlesitemap.php.* [NC]
#RewriteCond %{REQUEST_URI} !/ideal_callback.php.* [NC]
#RewriteCond %{REQUEST_URI} !/ipn_main_handler.php.* [NC]
#RewriteCond %{REQUEST_URI} !/iridium_3d_secure_iframe.php.* [NC]
#RewriteCond %{REQUEST_URI} !/localities_remote_loader.php.* [NC]
#RewriteCond %{REQUEST_URI} !/nochex_apc_handler.php.* [NC]
#RewriteCond %{REQUEST_URI} !/protx_direct_3d_secure_iframe.php.* [NC]
#RewriteCond %{REQUEST_URI} !/realex_remote_3d_secure_iframe.php.* [NC]
# Handle all other URIs/file types (php|html|htm etc.) using Zen Cart (index.php)
#RewriteRule (.*) index.php?%{QUERY_STRING} [L]
#Rule-1
RewriteCond %{HTTP_HOST} ^niels-slaapcomfort.nl$
RewriteCond %{REQUEST_URI} !^/nielsslaapcomfort
RewriteRule (.*) /nielsslaapcomfort/$1
#Rule-2
RewriteCond %{HTTP_HOST} ^www.niels-slaapcomfort.nl$
RewriteCond %{REQUEST_URI} !^/nielsslaapcomfort
RewriteRule (.*) /nielsslaapcomfort/$1
----------------------------------
I already asked the the isp but they could not tell me what the problem could be. I used their hosting manager wich automaticly can write redirects an I also tried manually but without succes. Also changing the sort-order of rulenumbers didn't make any difference. As you already now I'm not very technical so that's why I and up here :wink:
Hope you can give me some advice...
Thanks in advance, Gerjan - The Netherlands
Sorry for the mess but I forgot something. When I type the url "nielsslaapcomfort" I end up on the main page of the shop.
In the folder of "nielsslaapcomfort" there is also an index.php. Maybe this is part of the problem and should I add:
#RewriteCond %{REQUEST_URI} !/nielsslaapcomfort/index.php.* [NC] ?
...
Re: Ceon URI Mapping (SEO)
Hi Gerjan,
Quote:
Originally Posted by
Gerjan
I also use IH2, everything is working fine. I only use IH2 to get optimal resolution of the images wich IH2 does automaticly.
Thanks for that confirmation. I checked and image handler still does add .jpg etc. to the end of the image names so I don't think it's the URI mapping module causing the problem for MickMo.
Consequently I'll be going ahead with a 3.2.1 release now!
All the best...
Conor
Ceon
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
conor
Hi Gerjan,
How are you? :)
I'm fine, thanks for asking. Hope you're ok too..:) Sometimes all of this drives one crazy....
Quote:
Originally Posted by
conor
If it doesn't work please e-mail me rather than posting here as this is obviously server specific and lots of rewrite rules being posted in this thread obscures the posts about the module itself!
I'll keep that in mind.
It worked out fine! Thank you for your quick response!
I already gave the advice of hosting an extra server/domain for this site but it will cost extra :) and that's what he didnt want. But it works fine now, he's happy.
Have a nice weekend!
Re: Ceon URI Mapping (SEO)
Hi Gerjan,
Quote:
Originally Posted by
Gerjan
Sometimes all of this drives one crazy....
lol As I said, I really didn't expect to be learning about Rewrite Rules like this.. I suppose it's good that I am though, I'll be able to answer any future questions that bit easier! :)
Glad that everything's working as expected now.
About to post the 3.2.1 release.
Quote:
Originally Posted by
Gerjan
Have a nice weekend!
It seemed so far away all week, I totally forgot about it until you said.. gotta speed up and get everything done so I can relax.. thanks for reminding me, have a good weekend yourself!
All the best...
Conor
Ceon
Ceon URI Mapping (SEO) Version 3.2.1 Released!
Hi,
A new version of the module is available.
This release contains an important bugfix.
ALL USERS MUST UPGRADE!
Changes from version 3.2.0:
[BUGFIX] The module was not compatible with Zen Cart's page_not_found/404 functionality.
[UPDATED] Default Whitespace Replacement Character for auto-generated URIs changed from a single underscore to a dash. (The primary reasons for this are that dashes are easier to find on the keyboard and type in for most people and dashes are more clearly read in underlined links).
[UPDATED] Documentation updated to use a single dash as the Whitespace Replacement Character.
[UPDATED] Documentation updated to make various information a little bit clearer and/or more specific.
Changes from 3.0.2:
[ADDED] Ability to specify the current URI mapping for a manufacturer directly in the admin added.
[UPDATED] Support for mapping manufacturers to static URIs added to link generation and page identification functionality.
[UPDATED] Database format updated to use a separate field for query string parameters when setting up mappings for other Zen Cart pages.
[BUGFIX] For versions 3.0.0 to 3.0.2, the links to the home page could go to a category or product page instead of the home page as the module was using an ambiguous SQL query.
[BUGFIX] Static URIs for categories were overriding the manufacturer display functionality of Zen Cart as they have a similar dynamic URI structure. Fixed by new manufacturer handling code.
[UPDATED] Documentation completely rewritten. Installation documentation made simpler, layout of documentation made clearer, table of contents added to the configuration documentation
[ADDED] New section added to the configuration documentation to help with setting up a working rewrite rule for the server and information about the new format for setting query string parameters added.
Upgrading from 3.2.0 to 3.2.1 should be quick and easy as no changes have been made to the core files the module requires to be modified.
Upgrading from 3.0.2 to 3.2.1 is slightly more involved as the includes/functions/html_output.php file was changed between 3.0.x and 3.2.x.
Please follow the upgrading instructions.
Please take special note of the section "Check/Change the URI Parts for standard Zen Cart pages related to a Product" as you may need to make a [simple] change to the admin languages file(s) for the module.
Enjoy the new version, there are no known issues with the module now (thankfully! ;) ).
Download now from Ceon
(Module has been submitted to downloads area but Zen Cart team are very busy at the minute).
All the best...
Conor
Ceon
Re: Ceon URI Mapping (SEO)
Quote:
I'll install Image Handler here myself to see but I don't see how changing the URI would have any effect on whether the additional images are shown or not.
Quote:
I also use IH2, everything is working fine.
Thank you Gerjan and Conor for going the extra mile with patience. I upgraded to 3.2.1 and reloaded IH2 and everything is fine. Again, thank you for your efforts.:clap:
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
Mickmo68
I upgraded to 3.2.1 and reloaded IH2 and everything is fine. Again, thank you for your efforts.
No problem. I'm glad it's all working for you now (and that 3.2.1 is out so there are no more bugs to sort out [that I know of!]).
Have a good weekend!
All the best...
Conor
Ceon
Re: Ceon URI Mapping (SEO)
Hi Conor,
It is a great module that you've got there! Thanks.
I had been trying it out on the server and most of the pages works fine other than the default index.php. I get a page not found 404 when ever I client on the home.
You will be able to see it at http://max.dotheprojectright.com/seo/
my htaccess looks like the following, any idea at all:
RewriteEngine On
# ONLY rewrite URIs beginning with /seo/
RewriteCond %{REQUEST_URI} ^/seo/.* [NC]
# 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} !^/seo/admin.* [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/seo/editors.* [NC]
# Don't rewrite payment pages/callback handlers
# (Won't be rewritten by rules above but included here in case rewriting of URIs ending in .php is added)
RewriteCond %{REQUEST_URI} !^/seo/ipn_main_handler.php.* [NC]
RewriteCond %{REQUEST_URI} !^/seo/iridium_3d_secure_iframe.php.* [NC]
RewriteCond %{REQUEST_URI} !^/seo/localities_remote_loader.php.* [NC]
RewriteCond %{REQUEST_URI} !^/seo/nochex_apc_handler.php.* [NC]
RewriteCond %{REQUEST_URI} !^/seo/protx_direct_3d_secure_iframe.php.* [NC]
RewriteCond %{REQUEST_URI} !^/seo/realex_remote_3d_secure_iframe.php.* [NC]
RewriteCond %{REQUEST_URI} !^/seo/index.php [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]
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
diverpeter
I had been trying it out on the server and most of the pages works fine other than the default index.php. I get a page not found 404 when ever I client on the home.
I'm afraid I can't think of any reason for this problem occurring.
One thing I can say is that there's no real reason to have the following in the rewrite rule, I'm not sure why you added it:
Code:
RewriteCond %{REQUEST_URI} !^/seo/index.php [NC]
All the best..
Conor
Ceon
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
conor
Hi,
I'm afraid I can't think of any reason for this problem occurring.
One thing I can say is that there's no real reason to have the following in the rewrite rule, I'm not sure why you added it:
Code:
RewriteCond %{REQUEST_URI} !^/seo/index.php [NC]
All the best..
Conor
Ceon
that was a mistake, I was going a lot of try and error....
Thanks for your input anyway, I guess I will have to do more.