W
W
wmp2018-09-19 19:28:41
htaccess
wmp, 2018-09-19 19:28:41

301 redirect for all pages of the directory /opt/* to the main one. What's wrong?

Changed the site. The old one turned off. Most links remain unchanged.
Completely removed the registration from the site.
There were several hundred links like http:///login/?register=yes&backurl=/franchise/lea...
You just need to bring all these links to the main one.
Tried:
RewriteRule ^(.*)/login/(.*)$ / [R=301,L]
Redirect 301 ^/login/(.*) /

RewriteCond %{REQUEST_URI} /login/(.*)
RewriteRule / [L,R=301]

CHADNT?!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2018-09-19
@wmp

RewriteRule ^login/ /? [R=301,L]
Set above the rest of the rules.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question