Home CMSMS htaccess rewrite for ListIt2 module
Reply: 0

CMSMS htaccess rewrite for ListIt2 module

user4445 Published in September 19, 2018, 3:54 am

i'm creating a website with CMS made simple version 1.11.11 and i use the listit2 module version 1.4.1 .

Now this module only can generate urls in this form:

Now, i don't care about the page id which is used to show the correct template,
but since this is a multilingual website i would like listit2 to apear behind my (virtual) language folder:

so i added 2 rewrite lines in my htaccess file, right before the general rewrite rules of CMSMS.

    RewriteCond %{HTTP_HOST} ^lang/listit2 [NC]
    RewriteRule ^lang/listit2(.*)$ listit2$1

    # Rewrites urls in the form of /parent/child/
    # but only rewrites if the requested URL is not a file or directory

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.+)$ index.php?page=$1 [QSA]

but that doesn't seem to work since it generates the summary overview instead of a detail page like the content from http://example.com/listit2/page-id

How, can i solve this?

share|improve this question

2 Answers 2

active oldest votes
up vote 0 down vote accepted
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.298896 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO