1 (edited by JW 19-05-2015 08:58:57)

Topic: Category --> Older Posts --> Sorry, the page ...

Hi Everyone

Hope you guys have had a good day.

My "Older Posts" directs me to "Sorry, the page you were looking for doesn’t exist".

This problem only happens when the older posts goes from CATEGORY. All otherwise
work fine.

Would appreciate if anyone can guide me on this.

Version: v4.0.3
Theme: Echo

The website link: http://bit.ly/CATEGORY

Please help.
Thanks. J

2

Re: Category --> Older Posts --> Sorry, the page ...

Hi Everyone

Havent got any response from anyone... Can anyone help please?

Thanks. J

Re: Category --> Older Posts --> Sorry, the page ...

Hello,
can you post your .htaccess file ?

Regards

4

Re: Category --> Older Posts --> Sorry, the page ...

Hi Diego

I just copied what i saw on the forum and pasted on my .htaccess. I seriously have no idea what they do.
Feel free to correct me if you spot anything that's not relevant.

Thanks in advanced for the help.

Thanks. J

=========================


#Complete this file with Settings->SEO Options->Frindly URL

SetEnv REGISTER_GLOBALS 0
SetEnv ZEND_OPTIMIZER 1
SetEnv MAGIC_QUOTES 0
SetEnv PHP_VER 5

<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_METHOD} ^(HEAD|TRACE|DELETE|TRACK) [NC]
RewriteRule ^(.*)$ - [F,L]
RewriteCond %{QUERY_STRING} \.\.\/ [NC,OR]
RewriteCond %{QUERY_STRING} boot\.ini [NC,OR]
RewriteCond %{QUERY_STRING} tag\= [NC,OR]
RewriteCond %{QUERY_STRING} ftp\:  [NC,OR]
RewriteCond %{QUERY_STRING} http\:  [NC,OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [NC,OR]
RewriteCond %{QUERY_STRING} ^.*(\[|\]|\(|\)|<|>|ê|"|;|\?|\*|=$).* [NC,OR]
RewriteCond %{QUERY_STRING} ^.*(&#x22;|&#x27;|&#x3C;|&#x3E;|&#x5C;|&#x7B;|&#x7C;).* [NC,OR]
RewriteCond %{QUERY_STRING} ^.*(%24&x).* [NC,OR]
RewriteCond %{QUERY_STRING} ^.*(%0|%A|%B|%C|%D|%E|%F|127\.0).* [NC,OR]
RewriteCond %{QUERY_STRING} ^.*(globals|encode|localhost|loopback).* [NC,OR]
RewriteCond %{QUERY_STRING} ^.*(request|select|insert|union|declare).* [NC]
</IfModule>


# MOD_DEFLATE COMPRESSION
SetOutputFilter DEFLATE

# -------
# One line below is hidden from Nibbleblog forum. Because it otherwise wont allow me to post this comment. Error message:
# "Too more links in message. Allowed 1 links. Reduce number of links and post it again."
# -------

BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
#ne pas mettre en cache si ces fichiers le sont déjà
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip
Header append Vary User-Agent env=!dont-vary
<IfModule mod_headers.c>
<FilesMatch ".(ico|jpe?g|png|gif|swf|flv|css|js|gz|pdf)$">
Header set Cache-Control "max-age=2592000"
</FilesMatch>
<filesMatch ".(html|htm|xml)$">
Header set Cache-Control "max-age=43200"
</filesMatch>
<FilesMatch ".(php|cgi)$">
Header unset Cache-Control
</FilesMatch>
</IfModule>


<IfModule mod_expires.c>
  ExpiresActive On
  ExpiresDefault "access plus 1 week"
  AddType image/x-icon .ico
  ExpiresByType image/gif "access plus 1 month"
  ExpiresByType image/ico "access plus 1 month"
  ExpiresByType image/jpg "access plus 1 month"
  ExpiresByType image/png "access plus 1 month"
  ExpiresByType image/jpeg "access plus 1 month"
  ExpiresByType image/icon "access plus 1 month"
  ExpiresByType image/x-icon "access plus 1 month"
  ExpiresByType text/css "access plus 1 month"
  ExpiresByType text/html "access plus 1 month"
  ExpiresByType text/javascript "access plus 1 month"
  ExpiresByType application/xhtml+xml "access plus 1 month"
  ExpiresByType application/x-javascript "access plus 1 month"
  ExpiresByType application/x-shockwave-flash "access plus 1 month"
</IfModule>
# directory browsing
Options All -Indexes
# KILL THEM ETAGS
Header unset ETag
FileETag none

# ******* End here



# Secure .bit files
<FilesMatch ".(bit)$">
Order Allow,Deny
Deny from all
</FilesMatch>

# Disable directory browsing
Options -Indexes

# Disable Magic Quotes
<IfModule mod_php5.c>
php_flag magic_quotes_gpc off
</IfModule>

# Secure .xml files
<FilesMatch ".(xml)$">
Order Allow,Deny
Deny from all
</FilesMatch>

# Secure shadow.php
<Files shadow.php>
order allow,deny
deny from all
</Files>

# Secure keys.php
<Files keys.php>
order allow,deny
deny from all
</Files>

ErrorDocument 404 /Sihua_Blog/index.php?controller=page&action=404

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /Sihua_Blog/

RewriteRule ^category/([^/]+)/page-([0-9]+)$ index.php?controller=blog&action=view&category=$1&number=$2 [L]
RewriteRule ^category/([^/]+)/$ index.php?controller=blog&action=view&category=$1&number=0 [L]
RewriteRule ^tag/([^/]+)/page-([0-9]+)$ index.php?controller=blog&action=view&tag=$1&number=$2 [L]
RewriteRule ^tag/([^/]+)/$ index.php?controller=blog&action=view&tag=$1&number=0 [L]
RewriteRule ^page-([0-9]+)$ index.php?controller=blog&action=view&number=$1 [L]
RewriteRule ^post/([^/]+)/$ index.php?controller=post&action=view&post=$1 [L]
RewriteRule ^post-([0-9]+)/(.*)$ index.php?controller=post&action=view&id_post=$1 [L]
RewriteRule ^page/([^/]+)/$ index.php?controller=page&action=view&page=$1 [L]
RewriteRule ^feed/$ feed.php [L]
RewriteRule ^([^/]+)/$ index.php?controller=page&action=$1 [L]
</IfModule>

5

Re: Category --> Older Posts --> Sorry, the page ...

Hi All

Does anyone else have other inspiration how my above redirect goes wrong?

On a separate case, how do we remove the weird character (I&#039;ve) from COMMENT?

Thanks so much. J

6 (edited by yakoumis 22-06-2015 10:08:31)

Re: Category --> Older Posts --> Sorry, the page ...

I have the exact same error using nginx 1.8.0 and latest nibbleblog (4.0.3).

The re-writes seem to work fine for everything else but when /category/category_name/page-1 is accessed, it 404s.

I have used KBeezie's configuration file (see: http://forum.nibbleblog.com/viewtopic.php?id=176 )

<- You can see for yourself if you visit the website on my profile