Pagination error on home page (only)
I posted this in an old thread (
here), but since it has been marked as 'SOLVED' I assume no one really looks at them anymore. I am having an issue with my home page pagination links.
I have added the rewrite links to the .htaccess file as meloniq suggested in the other thread, but that does not make any difference. Here is my .htaccess file content below:
Code:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteRule ^page/(.*) ads/page/$1 [R=301,L]
RewriteRule ^page/(.*)/ ads/page/$1/ [R=301,L]
</IfModule>
# END WordPress
#Redirect www to non-www
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
Website URL: http://tinyurl.com/kz2ktfx - you will notice that if you click on any of the pagination links, the URL does not change. And if you hover over the links, note that the URL is
/page/2 when it actually needs to be either
/ads/page/2 OR
/home/page/2 (either will work).
Note: In case this information is required, my home page file is called "Home" (slug = home) and it is set as the static home page in the settings. However, in saying that, I have also tried the following which also didn't work:
Code:
RewriteRule ^page/(.*) home/page/$1 [R=301,L]
RewriteRule ^page/(.*)/ home/page/$1/ [R=301,L]
I'm using
WP v3.5.1 / CP v3.3 - any help is greatly appreciated.
Thank you.