Jump to content

Enable SEO URLs


Guest gennad

Recommended Posts

Guest gennad

Since upgrading from V4 to V5 I have lost the SEO urls.

Previously my links were like

http://www.gennadelaney.com/shop/Limited-Edition-Pieces/One-off-Rings/rutile-quartz-wire-ring/prod_122.html

And now it is like

http://www.gennadelaney.com/shop/index.php?_a=product&product_id=122

I tried enabling the SEO urls in Search Engines/Enable SEO URLs but this broke my shop! I had to revert the htaccess file to fix it

I already use the rewrite engine on the root on my site in the htaccess file and server info shows mod_rewrite in the loaded modules.

The htaccess file in v4 was identical to the one in v5 so is it a change somewhere else needed?

Link to comment
Share on other sites

Guest gennad

That breaks the site, the page gives the message

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

The htaccess file was modified to add

#### Rewrite rules for SEO functionality ####

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_URI} !=/favicon.ico

RewriteRule ^(.*).html?$ index.php?seo_path=$1 [L,QSA]

</IfModule>

with the lines changing from

RewriteRule prod_([0-9]+)(\.[a-z]{3,4})?$ index.php?_a=viewProd&productId=$1&%1 [NC]

to

RewriteRule prod_([0-9]+)(.[a-z]{3,4})?$ index.php?_a=viewProd&productId=$1&%1 [NC]

Link to comment
Share on other sites

  • 3 weeks later...
Guest Westhouse IT

There is an option in v5 to install the .htaccess file, it is different to the v4 file. Rename the current file, then browse back to the SEO page and select install from there.

Is there a rewrite.script file for those who are on Zeus?

Link to comment
Share on other sites

Guest hennaboy

SEO is working fine.

You do not have it enabled looking at your website and if enabling the seo and the htaccess gives you a server error then its something that is conflicting on the server or your site. Any 3rd party mods

Link to comment
Share on other sites

SEO is working fine.

You do not have it enabled looking at your website and if enabling the seo and the htaccess gives you a server error then its something that is conflicting on the server or your site. Any 3rd party mods

no mods at all. I can pm you any other parts of the server config that might help? I posted the parts mentioned in other threads I found about the SEO option

Link to comment
Share on other sites

My host was able to determine the issue,

the line

RewriteCond %{QUERY_STRING} (.*)$

RewriteRule _saleItems(.[a-z]+)?(?.*)?$ index.php?_a=viewCat&catId=saleItems&%1 [NC,L]

should have been

RewriteCond %{QUERY_STRING} (.*)$

RewriteRule _saleItems(.[a-z]+)?(?:)?$ index.php?_a=viewCat&catId=saleItems&%1 [NC,L]

but, now that they are enabled, the link created by the SEO path tool is:

http://www.gennadelaney.com/shop/one-off-pieces/rings/rutile-quartz-wire-ring.html

where previously it was

http://www.gennadelaney.com/shop/Limited-Edition-Pieces/One-off-Rings/rutile-quartz-wire-ring/prod_122.html

This is much better, but should there not be a step to redirect links to the old style SEO path links to the new style?

Link to comment
Share on other sites

  • 1 month later...

Hey, can I just ask how it 'broke the site'?

I'm experiencing an issue with my store, whereby if the .htaccess is present, IE7/8 are unable to load the site. I've submitted a ticket, and tech support have verified the problem is occurring, and that the store contains no mods which could cause this. Maybe your fix has something to do with it.

Link to comment
Share on other sites

My host was able to determine the issue,

the line

RewriteCond %{QUERY_STRING} (.*)$

RewriteRule _saleItems(.[a-z]+)?(?.*)?$ index.php?_a=viewCat&catId=saleItems&%1 [NC,L]

should have been

RewriteCond %{QUERY_STRING} (.*)$

RewriteRule _saleItems(.[a-z]+)?(?:)?$ index.php?_a=viewCat&catId=saleItems&%1 [NC,L]

but, now that they are enabled, the link created by the SEO path tool is:

http://www.gennadelaney.com/shop/one-off-pieces/rings/rutile-quartz-wire-ring.html

where previously it was

http://www.gennadelaney.com/shop/Limited-Edition-Pieces/One-off-Rings/rutile-quartz-wire-ring/prod_122.html

This is much better, but should there not be a step to redirect links to the old style SEO path links to the new style?

I've created a bug report #0003001 asking for a rewrite rule. It might help if you would put a note on it to show I'm not the only one who wants this.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...