Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Folders in URL
#3
(2014-01-24, 16:58:27)Carlos Wrote: Set a custom permalink structure like this:
%parent%/%slug%.html

Change the rewrite rule in .htaccess to:
RewriteRule /?([A-Za-z0-9_-]+).html$ index.php?id=$1 [QSA,L]

Thanks for quick reply. Could you explain a little more.
Let me add that I also have to add new products and for SEO purposes, they shall be using their brandname+keywords in the page title.
So how would a product like "abc", "cbd-is-a-very-good-product", or "xyz-is-a-jewel-in-its-class" end up in the url as:
www.example.com/products/abc.html
www.example.com/products/cbd-is-a-very-good-product.html
www.example.com/products/xyz-is-a-jewel-in-its-class.html
etc.?
I am a bit htaccess-challenged Sad
Reply


Messages In This Thread
Folders in URL - by Singh - 2014-01-24, 16:40:32
RE: Folders in URL - by Carlos - 2014-01-24, 16:58:27
RE: Folders in URL - by Singh - 2014-01-24, 17:39:29
RE: Folders in URL - by Carlos - 2014-01-25, 00:44:53



Users browsing this thread: 4 Guest(s)