Welcome Guest, Not a member yet? Register   Sign In
.htaccess custom URL's
#8

[eluser]toopay[/eluser]
Whats happening if you ONLY put these htaccess
Code:
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
and try access for example http://yoursite/welcome/?foo=bar, while at that welcome controller index function you dump the $_GET parameter. Is that works and outputing the right GET value? If not, you should make it works first, by tweak the regex on the RewriteRule (and as i stated, maybe you need try different uri protocol too, even generally AUTO setting should works in normal condition). For the htaccess rewriterule, you can try these combination (this is from my working htaccess in several "weird" environment, like cenTOS with cherooke and other linux distro)
Code:
# try these combination to replace last line in above htaccess
RewriteRule ^.*$ index.php/$1 [L,QSA]
# or these one
# RewriteRule (.*) index.php/$1 [L,QSA]
Dont forget to clear your browser history and browser cache FIRST, before try on each htaccess configuration, otherwise it might be your browser just took the result from its own cache or history!


Messages In This Thread
.htaccess custom URL's - by El Forum - 07-06-2011, 05:00 PM
.htaccess custom URL's - by El Forum - 07-06-2011, 05:17 PM
.htaccess custom URL's - by El Forum - 07-06-2011, 05:21 PM
.htaccess custom URL's - by El Forum - 07-06-2011, 05:23 PM
.htaccess custom URL's - by El Forum - 07-06-2011, 05:56 PM
.htaccess custom URL's - by El Forum - 07-06-2011, 06:14 PM
.htaccess custom URL's - by El Forum - 07-08-2011, 03:40 PM
.htaccess custom URL's - by El Forum - 07-09-2011, 12:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB