php - htaccess redirecting not working from gmail link -


i having problem if send 1 link email. when people click on non-www link gmail redirect home page of site when click on www added link reached in correct page. here 1 example:

http://www.google.com/url?q=http%3a%2f%2fgreatratedjs.com%2fcurtnw&sa=d&sntz=1&usg=afqjcnh_vlmdsssnnc-20fliz9ot7ip3ag (not working non-www)

http://www.google.com/url?q=http%3a%2f%2fwww.greatratedjs.com%2fcurtnw&sa=d&sntz=1&usg=afqjcne-ld9hpvmyzmlh-ivib7insdgryq (working fine www)

my .htaccess redirecting rules:

rewriteengine on rewritecond %{http_host} !^www\. rewriterule ^(.*)$ http://www.%{http_host}/$1 [r=301,l] 

i using joomla community builder. joomla content working fine community builder's user profile has such problem. using sh404sef extension url management. suggestion ? in advance :)

it seems work me well. in rule, adding b flag should ensure weird characters $1 capture correctly re-encoded.

try this:

rewriteengine on rewritecond %{http_host} !^www\. rewriterule ^(.*)$ http://www.%{http_host}/$1 [b,r=301,l] 

Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -