S
S
Senseich2021-03-06 23:54:57
URL Handling
Senseich, 2021-03-06 23:54:57

How to navigate to a non-existent link to an existing page?

Hello! I have a site on the DLE engine.
It generates such page addresses - http://yoursite.com/id-имя новости.html
As I understand it , id from the address is difficult to remove and bugs are possible.

I will have a page where there will be links of this type - http://yoursite.com/имя новости.html
I need them to automatically go to an existing page http://yoursite.com/id-имя новости.html

. the address of the existing page is obviously not known, only part of it is the name of the news.html

Is it possible to do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rPman, 2021-03-07
@rPman

Yes, you need to develop a script that will do the substitution 'news name -> id' and set up address mapping on the web server using RewriteRule
ps what will you do if the news has the heading: 100-dalmantines

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question