Answer the question
In order to leave comments, you need to log in
How to fix Rewrite?
For a week now I can not overcome the problem, already really all the forces are gone.
I describe my trouble...
I moved from DLE to Drupal, transferred all the information and so on.
There are more than 5000 pages, page addresses have changed, but very simply, for example...
on DLE it was like this
/section/584_ya_vottakaya_stranica.html
Where 584 is the news ID in DLE.
That is, there is no such thing in Drupal and in Drupal the url looks like this
/section/ya_vottakaya_stranica.html
And everything would be cool, we write the usual Rewrite rule for this
RewriteRule ^(razdel\/)([0-9]+-)([-a-z0-9]*).html$ /$1$3.html [R=301,L]
Answer the question
In order to leave comments, you need to log in
Try regular season
^razdel\/\d+_(\d+_)?([\d\w_]*)\.html$ /razdel/$1$2.html
Install the pathauto module, it allows you to create templates for URLs.
in this case the template will look something like this:
razdel/[node:nid]_[node:title].html
you can create templates for all types of nodes or for each type separately.
so you don't have to rewrite me anything.
If you have titles in Russian, don't forget to install the Transliteration module to transliterate synonyms.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question