We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

a question about .htaccess | Forum

Topic location: Forum home » Support » General Questions
Onur Jan 6 '21
hello, i want to remove or don't show  back-uri=messages page

/sign-in?back-uri=messages page

Redirect /sign-in?back-uri=messages https://www.ilkok.com

i added this code but it is only working when i sing in. for guest it is not redirecting url why?

or how can i block to access /sign-in?back-uri=messages page?  

Onur Jan 7 '21

Quote from Chris_W Try this:

<IfModule mod_rewrite.c>

RewriteEngine On

Redirect 301 /sign-in?back-uri=messages /index



RewriteCond %{QUERY_STRING} (^|&)back-uri=messages($|&)

RewriteRule ^sign-in$ /index?&%{QUERY_STRING}

thank you a lot <3