GetSimple Support Forum

Full Version: Folders in URL
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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]
(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
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 (-)