Page 1 of 1

XHTML, CSS, mod_rewrite

Posted: Tue Mar 17, 2009 5:59 pm
by erik
Hello,

1) Will there be a release of OC that will be XHTML and CSS compliant out of box?

2) Will there be mod rewrite (pretty url) option?

Thank you for your answers ...

Re: XHTML, CSS, mod_rewrite

Posted: Tue Mar 17, 2009 6:43 pm
by nde
1) I'm working on a valid template for myself and gonna send it to Daniel, then it's up to him...

2) I think it's been discussed numerous times but I can't remember what the problem was. I played with .htaccess a bit:

Code: Select all

RewriteEngine on 
RewriteRule ^product_([0-9]+).html$ index.php?route=product/product&product_id=$1
this would change:

Code: Select all

http://mysite.com/index.php?route=product/product&product_id=48
to:

Code: Select all

http://mysite.com/product_48.html
No when the product_id would be alpha numerical, you'd could make the url pretty...
edit: you'd need to change 0-9 to a-z then

Re: XHTML, CSS, mod_rewrite

Posted: Sat Mar 21, 2009 8:36 pm
by ninja
I tried the above rule with the latest version (v1.2.2) with no luck.

It the rewrite rule compatibile with that version?

Thanks

Re: XHTML, CSS, mod_rewrite

Posted: Sun Mar 22, 2009 9:24 am
by nde
I only tested this on 1.1.9, had no time yet to see if it works on the latest too.
But as I understand it should cause problems anyway, but I'm don't remember what exactly...

Re: XHTML, CSS, mod_rewrite

Posted: Mon Mar 23, 2009 11:42 am
by sheep
That would be SO nice, to have "pretty" url's! Please include that in the next build....

PS// Isn't OC written in XHTML Strict?

Re: XHTML, CSS, mod_rewrite

Posted: Fri Jul 09, 2010 4:27 pm
by chapter5
I've been searching far and wide for an awesome ecommerse platform and I found it! openCart is the dogs danglies!! Except!! It's not XHTML 1.1 valid... even the French got that right (prestaShop)...

Would it also be possible to also have a download with no template and just the PHP so we can quickly add our own templates? For example: just give us the <?php echo $header; ?> and not the messy HTML. That would be choice!!

Oh and NO in-line styles please!

Cheers

PS: Daniel, I'm willing to fix all the xHTML validation errors for you guys...