R
R
RedSs2016-09-25 18:45:44
DLE
RedSs, 2016-09-25 18:45:44

Dle 11.1 change CNC?

In dle 11.1, you need to change the CNC so that http://site.ru/category/subcategory/id-name of news.html becomes http://site.ru/category/subcategory/name of news/ or without / at the
end what to change for this

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey Tutubalin, 2016-09-25
@Kennius

1) remove id
8dle.ru/help/5313-kak-ubrat-id-novosti-iz-url-adre... (the first in Google)
2) remove html
Open: .htaccess Set
below.

RewriteBase /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^.]+)\.html\ HTTP
RewriteRule ^([^\.]+)\.p?html?$ http://ТВОЙСАЙТ.com/$1 [R=301,L]
RewriteCond %{REQUEST_URI} !(\.[^./]+)$
RewriteCond %{REQUEST_fileNAME} !-d
RewriteCond %{REQUEST_fileNAME} !-f
RewriteRule (.*) /$1.html [L]

R
RedSs, 2016-09-25
@RedSs

1) remove the id
8dle.ru/help/5313-kak-ubrat-id-novosti-iz-url-adre... (first in google)

this method does not work for version 11.1

S
Sergey Goryachev, 2016-11-28
@webirus

If it's still relevant.
https://www.nulled.in/threads/140347/page-8
Solution under spoilers.
Works on 11.1.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question