Welcome Guest, Not a member yet? Register   Sign In
Newbie needs help
#4

[eluser]ecotypes[/eluser]
I do have the controller. And named as appropriate. So long as I don't add extra segments on the end, it works. Also isn't specific to one controller.

I thought possibly setting up .htaccess to eliminate the index.php might help. If doesn't. It does successfully eliminate the index.php, but I still can't get those last two segments recognized as data -- the site seems determined to load the entire URL. I've tried the previous suggestion on setting the route to no avail.

I just went through a battle with htaccess to get back to almost where I was (it now doesn't look like I get form parameters through either -- my login script is now failing and it worked before. I've tried going to the BlueHost form to see if there is an appropriate .htaccess script, but the forum seems to be down. It also might be that I'm actually in a subdirectory which happens to have its own domain name. I'm loading the .htaccess at the base of that subdirectory. But since I didn't have one at all before and the basics of this one appear to be working, I'm doubting that as the problem.

.htaccess

# Set the default handler.
DirectoryIndex index.php

<IfModule mod_rewrite.c>

RewriteEngine On
RewriteBase /

### Canonicalize codeigniter URLs

# If your default controller is something other than
# "welcome" you should probably change this
RewriteRule ^(welcome(/index)?|index(\.php)?)/?$ / [L,R=301]
RewriteRule ^(.*)/index/?$ $1 [L,R=301]

# Removes trailing slashes (prevents SEO duplicate content issues)
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/$ $1 [L,R=301]

# Enforce www
# If you have subdomains, you can add them to
# the list using the "|" (OR) regex operator
RewriteCond %{HTTP_HOST} !^(www|subdomain) [NC]
RewriteRule ^(.*)$ http://www.shirleydenton.com/$1 [L,R=301]

# Enforce NO www
#RewriteCond %{HTTP_HOST} ^www [NC]
#RewriteRule ^(.*)$ http://domain.tld/$1 [L,R=301]

###

# Removes access to the system folder by users.
# Additionally this will allow you to create a System.php controller,
# previously this would not have been possible.
# 'system' can be replaced if you have renamed your system folder.
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php/$1 [L]

# Checks to see if the user is attempting to access a valid file,
# such as an image or css document, if this isn't true it sends the
# request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

</IfModule>

<IfModule !mod_rewrite.c>

# Without mod_rewrite, route 404's to the front controller
ErrorDocument 404 /index.php

</IfModule>

In routes.php it seems to make absolutely no difference if add the suggestion made by the previous responder.


$route['default_controller'] = "welcome";
$route['scaffolding_trigger'] = "";

$route['admin'] = 'admin/home';

// For pages that stick parameters into the URL
$route['plants/pindex/(:any)/(:any)'] = "plants/pindex/$1/$2";
/* End of file routes.php */
/* Location: ./system/application/config/routes.php */

In config.php

I've tried all settings for
$config['uri_protocol'] =


Thanks in advance if you have any ideas!


Messages In This Thread
Newbie needs help - by El Forum - 06-02-2010, 10:51 PM
Newbie needs help - by El Forum - 06-02-2010, 11:01 PM
Newbie needs help - by El Forum - 06-03-2010, 12:37 AM
Newbie needs help - by El Forum - 06-03-2010, 09:40 AM
Newbie needs help - by El Forum - 06-04-2010, 06:54 AM



Theme © iAndrew 2016 - Forum software by © MyBB