Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CakePHP]podkatalog cakephp
Randallmaster
post 22.08.2013, 13:47:13
Post #1





Grupa: Zarejestrowani
Postów: 677
Pomógł: 11
Dołączył: 18.11.2009

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


jak ustawić podkatalog w cakephp

localhost/cakephp/

czyta mi za każdym razem od localhost

Ten post edytował Randallmaster 22.08.2013, 13:52:56
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Randallmaster
post 22.08.2013, 14:53:02
Post #2





Grupa: Zarejestrowani
Postów: 677
Pomógł: 11
Dołączył: 18.11.2009

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


Zrobiłem tak i dalej to samo...

plik / :
  1. <IfModule mod_rewrite.c>
  2. RewriteEngine on
  3. RewriteBase /cakephp/
  4. RewriteRule ^$ app/webroot/ [L]
  5. RewriteRule (.*) app/webroot/$1 [L]
  6. </IfModule>


plik /app :
  1. <IfModule mod_rewrite.c>
  2. RewriteEngine on
  3. RewriteBase /cakephp/
  4. RewriteRule ^$ app/webroot/ [L]
  5. RewriteRule (.*) app/webroot/$1 [L]
  6. </IfModule>


plik /app/webroot :
  1. <IfModule mod_rewrite.c>
  2. RewriteEngine On
  3. RewriteBase /cakephp/
  4. RewriteCond %{REQUEST_FILENAME} !-d
  5. RewriteCond %{REQUEST_FILENAME} !-f
  6. RewriteRule ^(.*)$ index.php [QSA,L]
  7. </IfModule>
Go to the top of the page
+Quote Post

Posty w temacie


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 Wersja Lo-Fi Aktualny czas: 25.06.2025 - 06:51