Pretty URL's SOLVED

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Pretty URL's SOLVED

Post by Dr.CSS »

Are you running on linux or widows server?...
owr_bgld

Re: Pretty URL's

Post 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
maxxbu
New Member
New Member
Posts: 2
Joined: Sun Apr 04, 2010 3:57 pm

Re: Pretty URL's SOLVED

Post 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
Last edited by maxxbu on Mon Apr 05, 2010 10:25 am, edited 1 time in total.
replytomk3

Re: Pretty URL's

Post 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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Pretty URL's SOLVED

Post 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...
replytomk3

Re: Pretty URL's SOLVED

Post 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!!
owr_bgld

Re: Pretty URL's

Post 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)
replytomk3

Re: Pretty URL's SOLVED

Post 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...
Post Reply

Return to “CMSMS Core”