H
H
hobot20182018-04-24 16:09:06
Search Engine Optimization
hobot2018, 2018-04-24 16:09:06

How to make url change?

Hello, I have a website and I need to change the link
hi.com/post.php?categoris=cut&podcategoris=12.1
to
hi.com/cut/12.1
if possible, in the smallest details

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dymok, 2018-04-24
@UnluckySerivelha

google:
htaccess cnc

V
Viktor Taran, 2018-04-24
@shambler81

RewriteCond %{QUERY_STRING} (^|&)categoris\=cut($|&)
RewriteCond %{QUERY_STRING} (^|&)podcategoris\=12\.1($|&)
RewriteRule ^post\.php$ /cut/12.1? [L,R=301]

But a colleague is right, if you have a self-writing, then you need to make a CNC or refuse to self-write.

A
Alexander, 2018-05-12
@Alexanderkrupnitsky

A very detailed post about 301 redirects in terms of proper SEO https://devaka.ru/articles/redirect-301

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question