2014-06-15, 00:18:30
(This post was last modified: 2014-06-15, 00:22:33 by johnstray2001.)
(2014-06-14, 01:23:17)Sharmila Wrote: Hello everyone.
It's a second day I am trying this plugin - following the instruction for installation, changing the custom settings and writing a post in the blog, but when I create a post, I find it safe and sound in the "data" folder, and its short version is shown on the page allocated for the blog, but neither a click on the post name, nor a click on "read more" is bringing me to its full version - instead I see 404 page.
Could anyonle plase tell me, what I didn't write/adjust somewhere?
You will need to modify your root .htaccess file. There is a known bug in the current version that stops this info from showing in the admin area.
You will need to add the following lines to .htaccess (where 'blog' is the slug to the page you choose in settings (change all if required)):
Code:
RewriteRule ^blog/post/([^/.]+)/?$ index.php?id=blog&post=$1 [L]
RewriteRule ^blog/tag/([^/.]+)/?$ index.php?id=blog&tag=$1 [L]
RewriteRule ^blog/page/([^/.]+)/?$ index.php?id=blog&page=$1 [L]
RewriteRule ^blog/archive/([^/.]+)/?$ index.php?id=blog&archive=$1 [L]
RewriteRule ^blog/category/([^/.]+)/?$ index.php?id=blog&category=$1 [L]
Your final .htaccess file should look something like this:
Code:
AddDefaultCharset UTF-8
Options -Indexes
# blocks direct access to the XML files - they hold all the data!
<Files ~ "\.xml$">
Order allow,deny
Deny from all
Satisfy All
</Files>
<Files sitemap.xml>
Order allow,deny
Allow from all
Satisfy All
</Files>
RewriteEngine on
# Usually RewriteBase is just '/', but
# replace it with your subdirectory path -- IMPORTANT -> if your site is located in subfolder you need to change this to reflect (eg: /subfolder/)
RewriteBase /
RewriteRule ^blog/post/([^/.]+)/?$ index.php?id=blog&post=$1 [L]
RewriteRule ^blog/tag/([^/.]+)/?$ index.php?id=blog&tag=$1 [L]
RewriteRule ^blog/page/([^/.]+)/?$ index.php?id=blog&page=$1 [L]
RewriteRule ^blog/archive/([^/.]+)/?$ index.php?id=blog&archive=$1 [L]
RewriteRule ^blog/category/([^/.]+)/?$ index.php?id=blog&category=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]
If you are hosting on a Microsoft IIS based server, you will need to modify your web.config file to add the following rule (Needs to be first in the list):
Code:
$<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<clear />
<rule name="Blog" stopProcessing="true">
<match url="(^feed)/([|^post|^tag|^page|^archive|^category]+)/([^/.]+)/?$" ignoreCase="true" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?id={R:1}&{R:2}={R:3}" appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
Check out my website: JohnStray.com