Redirection to base_url |
[eluser]migsy[/eluser]
Hi Say that my website's base_url is www.domain.com/ (note the final slash). When I type www.domain.com (with no final slash), Code Igniter redirects me to the base_url (www.domain.com/). This is actually not a HTTP redirection (the browser gets a 200 code). Is there any way to return a 301 redirection code when I type www.domain.com to redirect me me to the base_url www.domain.com/? Many thanks in advance! M
[eluser]hugle[/eluser]
[quote author="migsy" date="1267769207"]Hi Say that my website's base_url is www.domain.com/ (note the final slash). When I type www.domain.com (with no final slash), Code Igniter redirects me to the base_url (www.domain.com/). This is actually not a HTTP redirection (the browser gets a 200 code). Is there any way to return a 301 redirection code when I type www.domain.com to redirect me me to the base_url www.domain.com/? Many thanks in advance! M[/quote] Hello I think this final slash is added by default by the browser. so actually it is not CodeIgniter who does this redirect. as far as I remember, every page I visit has '/' at the end after the domain name. |
Welcome Guest, Not a member yet? Register Sign In |