Page 2 of 2

Re: Pretty URL's SOLVED

Posted: Sun Apr 04, 2010 5:19 pm
by Dr.CSS
Are you running on linux or widows server?...

Re: Pretty URL's

Posted: Sun Apr 04, 2010 5:48 pm
by owr_bgld
replytomk3 wrote: for mod_rewrite to work, you must have all of that in your .htaccess
Sorry, but that's not the only code which works - i wrote it in some topics jet that I had troubles with this .htaccess . and my file only has this inside and it works perfictly ( one importeant thing are the "[NC]": And after thes i only say, where the 3012, 401, ... sites should go (except the 404).

Code: Select all

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
So when I read that only this .htaccess like written a few topics above is the only one - that's not the only possible sheme of the .htaccess

Re: Pretty URL's SOLVED

Posted: Mon Apr 05, 2010 10:15 am
by maxxbu
Linux (Ubuntu 9.10)

@owr_bgld: This code works for me, unfortunately not ...


$config['url_rewriting'] = 'internal';    --> internal instead of mod_rewrite works for me ... :-\ but I want to have mod_rewrite

Re: Pretty URL's

Posted: Mon Apr 05, 2010 3:36 pm
by replytomk3
owr_bgld wrote:
replytomk3 wrote: for mod_rewrite to work, you must have all of that in your .htaccess
Sorry, but that's not the only code which works - i wrote it in some topics jet that I had troubles with this .htaccess . and my file only has this inside and it works perfictly ( one importeant thing are the "[NC]": And after thes i only say, where the 3012, 401, ... sites should go (except the 404).

So when I read that only this .htaccess like written a few topics above is the only one - that's not the only possible sheme of the .htaccess
I have absolutely no idea what you are talking about. And if you have problems with having this code in your .htaccess, contact your hosting provider immediately.

Re: Pretty URL's SOLVED

Posted: Mon Apr 05, 2010 6:24 pm
by Dr.CSS
mod_rewrite only works if you have an .htaccess file in root, I just did a site where they won't allow any htaccess files in any of the folders, stupid yahoo business host...

Re: Pretty URL's SOLVED

Posted: Mon Apr 05, 2010 6:26 pm
by replytomk3
Dr.CSS wrote: mod_rewrite only works if you have an .htaccess file in root, I just did a site where they won't allow any htaccess files in any of the folders, stupid yahoo business host...
Heard you talking on the IRC 'bout this. Well, just tell the customer you will be doing a transfer of hosting as well!!

Re: Pretty URL's

Posted: Mon Apr 05, 2010 6:47 pm
by owr_bgld
replytomk3 wrote: And if you have problems with having this code in your .htaccess, contact your hosting provider immediately.
Why shall I contact them (three different) - only because it needs the [NC] at the end - if we put the blinkers away we can see that there can be different ways the .htaccess works (except you are not allowed using .htaccess)

Re: Pretty URL's SOLVED

Posted: Mon Apr 05, 2010 6:54 pm
by replytomk3
owr_bgld, I don't really know what you mean. And I can't help If I don't know what you are talking about...