Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [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
kicaj
post 22.08.2013, 14:03:12
Post #2





Grupa: Zarejestrowani
Postów: 1 640
Pomógł: 28
Dołączył: 13.02.2003
Skąd: Międzyrzecz/Poznań

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


RewriteBase / w .htaccess?

P.S. Gdzie i co Ci czyta?tongue.gif

Ten post edytował kicaj 22.08.2013, 14:04:10


--------------------
PHP Developer

"Nadmiar wiedzy jest równie szkodliwy jak jej brak" Émile Zola
Go to the top of the page
+Quote Post
Randallmaster
post 22.08.2013, 14:18:28
Post #3





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

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


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


no znalazłem prędzej ale oczywiście home.pl zaskoczył mnie czymś nowym

500 Internal Error

The server encountered an internal error and could not complete your request.

i znowu mam problem...
Go to the top of the page
+Quote Post
kicaj
post 22.08.2013, 14:42:36
Post #4





Grupa: Zarejestrowani
Postów: 1 640
Pomógł: 28
Dołączył: 13.02.2003
Skąd: Międzyrzecz/Poznań

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


W każdym z trzech plików .htaccess (/, '/app', '/app/webroot') to ustaw


--------------------
PHP Developer

"Nadmiar wiedzy jest równie szkodliwy jak jej brak" Émile Zola
Go to the top of the page
+Quote Post
Randallmaster
post 22.08.2013, 14:53:02
Post #5





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

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: 24.06.2025 - 04:30