Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [cms made simple] Pretty URLS, puste strony
Twist
post
Post #1





Grupa: Zarejestrowani
Postów: 174
Pomógł: 11
Dołączył: 12.10.2008
Skąd: Dublin

Ostrzeżenie: (0%)
-----


config.php
  1. $config['wiki_url'] = 'http://wiki.cmsmadesimple.org/index.php/User_Handbook/Admin_Panel';
  2. $config['url_rewriting'] = 'mod_rewrite'; // this is new from 1.6
  3. $config['page_extension'] = '.html';
  4. $config['use_hierarchy'] = true; // this will be the standard from 1.7
  5. $config['query_var'] = 'page';


httaccess
  1. RewriteEngine On
  2.  
  3. #Rewrites page.html as index.php?page
  4. RewriteCond %{REQUEST_FILENAME} !-f [NC]
  5. RewriteCond %{REQUEST_FILENAME} !-d [NC]
  6. RewriteRule ^(.+)$ /index.php?page=$1 [QSA]


Wsyztsko działa.. tylko jak klkikne jakikolwiek link to otzrymuje error 404. Co jest nie tak?
Go to the top of the page
+Quote Post
vokiel
post
Post #2





Grupa: Zarejestrowani
Postów: 2 592
Pomógł: 445
Dołączył: 12.03.2007

Ostrzeżenie: (0%)
-----


Mod rewrite włączony na serwerze?

Tutaj http://wiki.cmsmadesimple.org/index.php/FA...#Pretty_URL.27s czytałeś?


--------------------
Go to the top of the page
+Quote Post
Twist
post
Post #3





Grupa: Zarejestrowani
Postów: 174
Pomógł: 11
Dołączył: 12.10.2008
Skąd: Dublin

Ostrzeżenie: (0%)
-----


Błędna lokalizacja .httacess smile.gif Przeniesienie do roota pomogło. Głupi błąd, bo zielony w tym jestem smile.gif
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 19.08.2025 - 04:57