2014-11-14, 23:40:20
I've been trying to figure out a .htaccess solution for setting the homepage/index as the News Manager page (with FancyURLs on, without custom permalink structure) and couldn't find out how. I think that many people already use it so but I always used NM on a subpage.
In my case, after clicking onto any post, I'm redirected to /404/ and get the Post not found message.
The default .htaccess for NM is
In my case, the "newspageslug" is "index", but replacing the "newspageslug" with "index" isn't sufficient.
I managed to make it work by removing the first "newspageslug/" and replacing the "newspageslug" with "index" in the GET part...
... but in this case, all other GS pages were though as they were "404 News Manager posts", instead of normal GS pages.
If you wanted to ask about the generated .htaccess after changing NM settings, I'm getting "Failed to generate a .htaccess sample for the current site settings " message.
I have read this post of yours
Thanks for any help.
In my case, after clicking onto any post, I'm redirected to /404/ and get the Post not found message.
The default .htaccess for NM is
Code:
RewriteRule ^newspageslug/tag/([^/.]+)/?$ index.php?id=newspageslug&tag=$1 [L]
RewriteRule ^newspageslug/([^/.]+)/?$ index.php?id=newspageslug&post=$1 [L]
RewriteRule ^newspageslug/page/([^/.]+)/?$ index.php?id=newspageslug&page=$1 [L]
RewriteRule ^newspageslug/archive/([^/.]+)/?$ index.php?id=newspageslug&archive=$1 [L]
In my case, the "newspageslug" is "index", but replacing the "newspageslug" with "index" isn't sufficient.
I managed to make it work by removing the first "newspageslug/" and replacing the "newspageslug" with "index" in the GET part...
Code:
RewriteRule ^tag/([^/.]+)/?$ index.php?id=index&tag=$1 [L]
RewriteRule ^([^/.]+)/?$ index.php?id=index&post=$1 [L]
RewriteRule ^page/([^/.]+)/?$ index.php?id=index&page=$1 [L]
RewriteRule ^archive/([^/.]+)/?$ index.php?id=index&archive=$1 [L]
If you wanted to ask about the generated .htaccess after changing NM settings, I'm getting "Failed to generate a .htaccess sample for the current site settings " message.
I have read this post of yours
(2014-10-04, 18:32:51)Carlos Wrote: You get that "error" (or notice) if you use:but I guess I'm not any of these cases, permalink structure is default (the text field is empty) and I'm not aware of any custom NM URL parameters either.
- a non-standard GS permalink structure (e.g. with %language%, %nondefaultlanguage%, ...)
or
- NM custom URL parameters/prefixes (e.g. NMNOPARAMPOST, NMPARAMPOST, etc)
Thanks for any help.
Tomáš Janeček - Multilingual personal website powered by GetSimple
» The little I did for GetSimple
» The little I did for GetSimple