Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 General
 Search Engines & Marketing
 SEO Friendly URLs
Author « Topic     

Sinbad
ECT Moderator

USA
65937 Posts

Posted - 08/27/2014 :  00:54:15  
This may help some of you that get 404 when setting up the extension-less urls available as of version 6.4. If your site does not already have the lines in green in the .htaccess file or does not have a .htaccess file and your creating it.
Change:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^category/([^/.]*)/?$ /categories.php?cat=$1 [QSA,nc,L,B]
RewriteRule ^products/([^/.]*)/?$ /products.php?cat=$1 [QSA,nc,L,B]
RewriteRule ^manufacturer/([^/.]*)/?$ /manufacturer.php?man=$1 [QSA,nc,L,B]
RewriteRule ^([^/.]+)$ proddetail.php?prod=$1 [QSA,nc,L,B]
</IfModule>

To:

<IfModule mod_rewrite.c>
Options FollowSymLinks
Options -MultiViews
RewriteEngine On
RewriteBase /
RewriteRule ^category/([^/.]*)/?$ /categories.php?cat=$1 [QSA,nc,L,B]
RewriteRule ^products/([^/.]*)/?$ /products.php?cat=$1 [QSA,nc,L,B]
RewriteRule ^manufacturer/([^/.]*)/?$ /products.php?man=$1 [QSA,nc,L,B]
RewriteRule ^([^/.]+)$ proddetail.php?prod=$1 [QSA,nc,L,B]
</IfModule>


(this works on Godaddy )


Winners never quit, quitters never win
User Manual for Ecommerce Templates

threecrow
Ecommerce Template Expert

USA
773 Posts

Pre-sales questions only
(More Details...)

Posted - 11/18/2014 :  00:49:28  
this sure be a sticky

John

Don't make excuses. It's what you do, not why you didn't.

Edited by - threecrow on 11/18/2014 00:50:14

Buntina2
Starting Member

France
27 Posts

Pre-sales questions only
(More Details...)

Posted - 03/10/2015 :  06:08:26  
I didnt find this anywhere, so posting it here

If you are using ASP version, the URLrewrite only works with : IIS 7, IIS 7.5 and IIS 8

Def not with IIS 6

Sinbad
ECT Moderator

USA
65937 Posts

Posted - 04/04/2016 :  15:20:10  
Hi for those on Godaddy newer servers its not necessary to add those lines, the following will work.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^category/([^/.]*)/?$ /categories.php?cat=$1 [QSA,nc,L,B]
RewriteRule ^products/([^/.]*)/?$ /products.php?cat=$1 [QSA,nc,L,B]
RewriteRule ^manufacturer/?$ /categories.php?man=all [QSA,nc,L,B]
RewriteRule ^manufacturer/([^/.]*)/?$ /products.php?man=$1 [QSA,nc,L,B]
RewriteRule ^([^/.]+)$ proddetail.php?prod=$1 [QSA,nc,L,B]
</IfModule>

Winners never quit, quitters never win
CSS and Responsive Designs
User Manual for Ecommerce Templates
  « Topic     
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000