V
V
Vadim2015-11-05 01:10:24
PHP
Vadim, 2015-11-05 01:10:24

How to solve cnc problem when url is not updated?

Hello! I did it on the CNC website, and everything seems to be fine, except for one thing: I click on the link, everything is OK,
For example: localhost/catalog/sofas/0/1
opens the page, but if you follow the next link, the previous one is not reset, it turns out : localhost/catalog/sofas/0/catalog/armchairs/0/2
Here is htaccess:

Options Indexes FollowSymLinks
Options All -Indexes
DirectoryIndex index.php
<FilesMatch "\.(cp.php)$">
order allow,deny
deny from all
</FilesMatch>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /index.php?page=$1 [L,QSA]

Please help me solve this problem, thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey, 2015-11-05
@J01

I suspect that you have links of the form
Put a slash:
<a href="/catalog/armchairs/0/2">link</a>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question