Problem with volt cms and blogs

Happy easter everyone :slight_smile: I have a problem with my site and I really can’t work out whats causing it! I’ve included a screenshot of scrutiny, as you can see i have // after blog url.

clean url is on, pretty urls are enabled, and this is my current .htaccess file:

RewriteEngine On

Rewrite blog URLs

RewriteRule ^blog/author/([^/])$ /blog/index.php?author=$1 [L,NC,QSA]
RewriteRule ^blog/category/([^/]
)$ /blog/index.php?category=$1 [L,NC,QSA]
RewriteRule ^blog/date/([^/])$ /blog/index.php?date=$1 [L,NC,QSA]
RewriteRule ^blog/search/([^/]
)$ /blog/index.php?search=$1 [L,NC,QSA]
RewriteRule ^blog/tag/([^/]*)$ /blog/index.php?tag=$1 [L,NC,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^blog/([^/]*)$ /blog/index.php?post=$1 [L,NC,QSA]

Set error page

ErrorDocument 404 /404

Really appreciate your help in advance :slight_smile:

Thanks
Todd

Your htaccess description is different from what I have documented here.

Thanks very much for the reply Jannis :slight_smile: I tried that one originally with the same problem, so I tried to have a play to see if anything changed that side. Here’s my htaccess file now after update:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule blog/author/(.) /blog/index.php?author=$1 [L,NC,QSA]
RewriteRule blog/category/(.
) /blog/index.php?category=$1 [L,NC,QSA]
RewriteRule blog/date/(.) /blog/index.php?date=$1 [L,NC,QSA]
RewriteRule blog/search/(.
) /blog/index.php?search=$1 [L,NC,QSA]
RewriteRule blog/tag/(.*) /blog/index.php?tag=$1 [L,NC,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule blog/(.*) /blog/index.php?post=$1 [L,NC,QSA]

Set error page

ErrorDocument 404 /404

here’s the result in scrutiny:

It is still different from my documentation…

I’ve copied it straight from that website but I’ve replaced all htaccess with blog instead. my blog is placed in Todd Nathaniel - Wedding Music Tips & Inspiration for Couples. Is this wrong how I’ve done it? Apologies if I’ve just misread it and thanks for your patience :slight_smile:

It would be better if you set your own htaccess here in a code bloc for better reading.

The discourse editor removed certain characters.

I already told you scrunity is not able to execute JavaScript. And some of the links on the page (related to the share functionality) are replaced on client side with JavaScript. As scrunity isn’t performing this, it will report incorrect links.

No problems, thankyou :slight_smile:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule blog/author/(.*) /blog/index.php?author=$1 [L,NC,QSA]
RewriteRule blog/category/(.*) /blog/index.php?category=$1 [L,NC,QSA]
RewriteRule blog/date/(.*) /blog/index.php?date=$1 [L,NC,QSA]
RewriteRule blog/search/(.*) /blog/index.php?search=$1 [L,NC,QSA]
RewriteRule blog/tag/(.*) /blog/index.php?tag=$1 [L,NC,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule blog/(.*) /blog/index.php?post=$1 [L,NC,QSA]

# Set error page
ErrorDocument 404 /404

is that the correct format? I’m looking at other sites for comparison and I’m not seeing that issue with their blogs etc.

Thanks

1 Like

Scrunity is following a non-existing link, because it is not able to execute JavaScript on the page.

This non-existing placeholder link(s) will replaced during client runtime with help of JavaScript to correct links.

Ignore these errors, as they will never occur for a real visitor.

Ah ok, thats ok then. Thankyou so much for your time Jannis, Volt CMS is amazing by the way so thankyou :slight_smile:

Have a great day!

1 Like