Volt CMS pretty url creating unsupported urls

Hi, sorry if this has been covered, but on my site I’m trying to create pretty urls which worked fine. Clean urls is also enabled. When I export and add to site, scrutiny is showing me that there are 25 unsupported urls starting with ///

My .htaccess file is as follows:

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 there something I’m doing wrong?

Thanks in advance!

Please list some details.

Hi Jannis, thankyou for the reply and sorry for the delay in replying. Its when I turn on pretty URL on my blogs (everything else is staying the same) I suddenly get bad links appearing on my page. Heres the screenshot from scrutiny.

Many thanks in advance!
Todd

This is my .htaccess file:

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

Nevermind, its all good! My htaccess file was in the wrong format. Thanks :slight_smile:

That was an easy one :smile:

Ah I thought I’d sorted it! Its down to when I change the htaccess phrase in the htaccess file to blog.

Have I done something wrong here?

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

Thanks again for your help and patience

Just ignore these “errors”. It’s the typical inability of these page inspection tools to execute JavaScript, with this, it tries to follow wrong links, which would never appear for a visitor of your website. These come from the share links, which are replaced dynamically during runtime via JavaScript.

1 Like

ah perfect, thankyou for that :slight_smile: really appreciate your help :slight_smile:

1 Like