News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

301 redirect problem

Started by pty10, December 06, 2010, 08:01:11 AM

Previous topic - Next topic

pty10

Hi guys,

Just trying to setup a 301 permanent redirection from  http://www.domainname.com.au/index.php [nofollow], http://domainname.com.au/index.php [nofollow] to http://www.domainname.com.au  using:

RewriteCond %{HTTP_HOST} ^domainname.com.au$ [OR]
RewriteCond %{HTTP_HOST} ^www.domainname.com.au$
RewriteRule ^index\.php$ "http\:\/\/www\.domainname\.com\.au" [R=301,L]

The redirection works but I'm not able to login to the website. I get the following error:

'You need to fill in a username.'

I suspect it has to do with the guest sessions of the website

Can someone tell me how can I get around this problem and using the 301 redirection?  Am I missing something from the Rewrite or needs to be modify to something else?

Regards,

E


pty10

Will try that. Can you tell me what [NC] is or stands for?

Tjati


Deaks

pty10, as you have not updated this in a month I am going to persume that you have it solved and mark it as such, if this is incorrect please let us know what else if anything you have tried, and we will continue to assist you.
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

Advertisement: