A
A
Alexander Muskatin2015-07-12 18:56:18
PHP
Alexander Muskatin, 2015-07-12 18:56:18

DLE - how to rename a folder and change links?

Task 1. On the datalife engine (dle v10.5), you need to rename the template folder. What files need to be edited?
Task 2 . How to change links like /index.php?do=addnews to /addnews without resorting to CNC tools and .htaccess - only using php?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Khomenko, 2015-07-12
@fegase

1. The templates folder , if you need it, is hardcoded in all JS and PHP. Just take and rename will not work.
2. It won't work without web server configuration. Redirecting a request from /addnews to /index.php?do=addnews is done by the web server, in your case Apache(.htaccess), and then PHP determines the request type based on its own rules.
PS. Do not use DLE, it is obsolete 5 years ago.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question