Welcome! Log In Create A New Profile

Advanced

Redirect http://site.com/? to http://site.com

Posted by vvs_chaos 
Redirect http://site.com/? to http://site.com
August 08, 2013 07:08AM
Greetings!

I'd like to create redirect like http://site.com/? to http://site.com (http://site.com/? can contain anything after ?: e.g. http://site.com/?iwjekjwbefkjwe).

I've added string

rewrite /? http://site.com permanent;

to nginx config but without any success.
If I am adding string with another symbol different from question mark such as "- "

rewrite /- http://site.com permanent;

it works. How question mark could be used for this situation?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 223
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready