07-16-2011, 11:55 AM
[eluser]Unknown[/eluser]
Hello,
I have the following issue.
My ci folder is in http://localhost/www/
Everything worked well and then when i inserted some extra routes
$route['designs'] = "posts/get/designs";
$route['designs/tag'] = "posts/get/design/tag";
$route['designs/tag/(:any)'] = "posts/get/design/tag/$1";
$route['designs/(:any)'] = "posts/get/design/$1";
Now i use <?=base_url()?> to get the something like
< a href='<?=base_url()?>designs'>Designs</ a>
When on the home screen the link produces http://localhost/www/designs
But when i am on the page http://localhost/www/designs
The link shows http://localhost/designs
And if i click it then it still works although i there is no www in the url.
The site works fine but i don't want it be accessible without the www.
When site goes live it will be without the www.
Hope it makes sense!
Hello,
I have the following issue.
My ci folder is in http://localhost/www/
Everything worked well and then when i inserted some extra routes
$route['designs'] = "posts/get/designs";
$route['designs/tag'] = "posts/get/design/tag";
$route['designs/tag/(:any)'] = "posts/get/design/tag/$1";
$route['designs/(:any)'] = "posts/get/design/$1";
Now i use <?=base_url()?> to get the something like
< a href='<?=base_url()?>designs'>Designs</ a>
When on the home screen the link produces http://localhost/www/designs
But when i am on the page http://localhost/www/designs
The link shows http://localhost/designs
And if i click it then it still works although i there is no www in the url.
The site works fine but i don't want it be accessible without the www.
When site goes live it will be without the www.
Hope it makes sense!