N
N
nizulko2016-12-09 11:41:35
Domain name market
nizulko, 2016-12-09 11:41:35

301 redirect via .htaccess doesn't redirect?

Colleagues, I wrote dozens of lines in .htaccess with 404-pages of the form ("404" space "working"):

Redirect 301 /catalog/asp/osnovnyie-svedeniya.html /catalog/asp/osnovnyie-svedeniya/
Redirect 301 /catalog/ateks/products/korpusa/ /catalog/atelex-exd/produkcziya/
...

Something doesn't work...
Skis don't go - I...?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey S., 2016-12-09
@Winsik

Redirect 301 /catalog/asp/osnovnyie-svedeniya.html http://site.ru/catalog/asp/osnovnyie-svedeniya/
maybe so?

A
Alceo, 2016-12-09
@Alceo

Look at the webserver settings and the error log.
And you can rewrite like
RewriteEngine On
RewriteRule ^old.html$ /new-location/ [END,R=301]

N
Nikita Kit, 2016-12-09
@ShadowOfCasper

Obviously, if the redirect doesn't work, then htaccess doesn't work. There is no error, otherwise it would be 500 error.
Therefore, requests are processed on the ngnix server, and not apache. Write in tp, so that apache handles requests, and ngnix - so that they stupidly cut it for proxies.
UPD:
yes, and check out my blog. I want views in the metric))) #this is not advertising)))
dropcogs.pro

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question