P
P
Pavel Sedoy2017-12-07 17:50:56
htaccess
Pavel Sedoy, 2017-12-07 17:50:56

How to remove a redirect?

Good afternoon. The essence of the problem is this:
The site has a single entry point, it was necessary to make sure that one page would bypass the single entry point and load via a direct link. .htaccess was edited for this :


AddDefaultCharset utf-8
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/hronology/
RewriteCond %{REQUEST_URI} !^/plan-marshala/
Redirect 301 /hronology/ /plan-marshalla/index.html
RewriteRule ^(.*) /public/ $1

Now you need to redirect any link to a single entry point (/public/index.php), commented out three lines in .htaccess , but to my surprise, the /chronology/ link also redirects to /plan-marshalla/index.html :

AddDefaultCharset utf-8
RewriteEngine on
#RewriteCond %{REQUEST_URI} !^/hronology/
#RewriteCond %{REQUEST_URI} !^/plan-marshala/
#Redirect 301 /hronology/ /plan-marshalla/index.html
RewriteRule ^(.*) /public/$1

What could be the problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
KazeZlat, 2017-12-07
@pavlik_sedoy

Your browser remembered the redirect (301 is permanent), clear the cache and everything should work as expected.

P
Pavel Sedoy, 2017-12-08
@pavlik_sedoy

I understand that there are some problems in OpenServer. On LAMP - everything is clear, everything works correctly, on OpenServer the problem remains ... Any suggestions what to do with OpenServer so that everything works correctly?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question