The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 1121 build_postbit
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 1121 build_postbit
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 1121 build_postbit
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 1121 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Folders in URL
#1
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.
Reply
#2
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]
Reply
#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
#4
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 (-)
Reply




Users browsing this thread: 1 Guest(s)