E
E
ezh_official2021-07-18 22:08:55
PHP
ezh_official, 2021-07-18 22:08:55

How to issue another file on request?

Request to the browser: https://address/category/category-name/
We will not have a category folder and subfolders for each category on the server.
In which direction to look for information, or some primitive code example.
Tried searching on Google, but couldn't find anything.
Thanks

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
Oleg, 2021-07-19
@ezh_official

https://symfony.com/doc/current/routing.html
https://laravel.com/docs/8.x/routing
https://www.yiiframework.com/doc/guide/2.0/en/runt. ..
simpler old
https://codeigniter.com/userguide3/general/routing.html
quite primitive
forum.php.su/topic.php?forum=71&topic=4323

A
Alexander Falaleev, 2021-07-18
@suffix_ixbt

Stupidly redirect from the old place to the new one - if you have apache then in .htaccess, if only nginx or litespeed then in it.
Google 301 redirect :)

R
rPman, 2021-07-18
@rPman

apache - mod_rewrite directive

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question