Posts: 3
Threads: 2
Joined: Aug 2013
In an existing static site I have an articles folder and a products folder and the pages are accessed like so:
www.example.com/articles/article1.html, etc
www.example.com/products/product1.html, etc
How can I simulate this structure in the url with GetSimple? Some articles have a fair page rank and quite a number of links so I would like to not use 301 except as a last resort.
Posts: 3,491
Threads: 106
Joined: Mar 2010
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]
Posts: 3
Threads: 2
Joined: Aug 2013
(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
Posts: 3,491
Threads: 106
Joined: Mar 2010
You can customize your page id's (slugs) in the page editor - see Slug/URL field in Options. You can use 0-9, a-z and dashes (-)