The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
|
Folders in URL - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16) +--- Thread: Folders in URL (/showthread.php?tid=5555) |
Folders in URL - Singh - 2014-01-24 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. RE: Folders in URL - Carlos - 2014-01-24 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] RE: Folders in URL - Singh - 2014-01-24 (2014-01-24, 16:58:27)Carlos Wrote: Set a custom permalink structure like this: 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 RE: Folders in URL - Carlos - 2014-01-25 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 (-) |