Welcome Guest, Not a member yet? Register   Sign In
[SOLVED]Routes problem?
#1

[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='&lt;?=base_url()?&gt;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!


Messages In This Thread
[SOLVED]Routes problem? - by El Forum - 07-16-2011, 11:55 AM
[SOLVED]Routes problem? - by El Forum - 07-16-2011, 02:43 PM



Theme © iAndrew 2016 - Forum software by © MyBB