Welcome Guest, Not a member yet? Register   Sign In
Pass variables through the url to codeigniter
#11

[eluser]wiredesignz[/eluser]
And it will continue to be asked by people who can't or won't try to understand how their server works.

Don't expect an article on the wiki to be the answer, lazy people don't even use google, let alone search here.
#12

[eluser]bretticus[/eluser]
[quote author="wiredesignz" date="1254401196"]And it will continue to be asked by people who can't or won't try to understand how their server works.

Don't expect an article on the wiki to be the answer, lazy people don't even use google, let alone search here.[/quote]

At least we could give them a simple link! :cheese:
#13

[eluser]Thefox[/eluser]
Thank you very much for the replies! So are you saying I should make an htaccess file in the root directory of my codeigniter folder with the following code?
Code:
RewriteEngine On

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

RewriteBase /index.php

RewriteCond %{ENV:REDIRECT_CI_PATH} !^$
RewriteRule ^(.*)$ - [E=CI_PATH:%{ENV:REDIRECT_CI_PATH}]

RewriteCond %{ENV:CI_PATH} ^$
RewriteRule ^(.*)$ - [E=CI_PATH:/$1]

RewriteCond $1 !^(index\.php|robots\.txt|favicon\.ico)
RewriteRule ^(.*)$ index.php [L]
And of course change the config setting
Code:
$config['uri_protocol'] = 'CI_PATH';

If so, I'd love to know how this works before implementing it in my server. Any links you'd suggest looking at that could help?

Thanks again
-Fox




Theme © iAndrew 2016 - Forum software by © MyBB