Welcome! Log In Create A New Profile

Advanced

index.php 301 redirect

ktm
October 14, 2009 08:32AM
I want to redirect all calls to http://mydomain.com/index.php to http://mydomain.com to avoid duplicate pages.I use this
if ($request_uri ~* "^/index.php\??$") {
rewrite ^.*$ http://$host? permanent;
}

but it doesn't seem to work properly. Although it redirects I cannot login or logout anymore in Joomla, it simply redirect to homepage without login or logout. What am i missing here ? How do i do this properly ? Of course if i remove that everything i fine, it works for example for home.html but not for index.php.
Thank you.
Subject Author Posted

index.php 301 redirect

ktm October 14, 2009 08:32AM

Re: index.php 301 redirect

Igor Sysoev October 14, 2009 09:16AM

Re: index.php 301 redirect

ktm October 14, 2009 10:22AM

Re: index.php 301 redirect

garrotte July 02, 2010 05:42PM

Re: index.php 301 redirect

garrotte July 02, 2010 06:57PM

Re: index.php 301 redirect

Roman Vasilyev July 02, 2010 06:20PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 289
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