Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> htaccess - szukam osoby która zna się na htaccess- uruchomienie działającego kiedyś serwisu :)
miccom
post
Post #1





Grupa: Zarejestrowani
Postów: 493
Pomógł: 8
Dołączył: 7.07.2007
Skąd: Tychy

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


Cześć.
Szukam osoby która pomoże mi uruchomić projekt ( gra online ).
Projekt kiedyś działał na serwerze dedykowanym.
Trzy lata temu serwer zamknąłem- bardzo tęsknię za tym projektem więc chciałbym go ponownie uruchomić- ale coś pomieszałem w htaccess i mam błędy 404.
Strona główna się uruchamia ale podstrony wywalają 404 (IMG:style_emoticons/default/sad.gif)

Jeśli jesteś zainteresowany/zainteresowana- zapraszam do rozmowy (IMG:style_emoticons/default/smile.gif)

Aktualne pliki:

index.php
  1. <?php
  2. // Defines
  3. include('defines.php');
  4.  
  5. // Klasa debugowa
  6. require_once(BASE_DIR . 'includes/core/Debug_class.php');
  7.  
  8. // Error handling
  9. debug::startErrorCollect();
  10.  
  11. // GLOWNA KLASA SILNIKA //
  12. require_once(BASE_DIR . 'includes/core/Core_class.php');
  13.  
  14. require_once BASE_DIR . 'library/Twig/Autoloader.php';
  15. Twig_Autoloader::register();
  16.  
  17. $app = NEW init();
  18. $app->getDependencies(); // DI
  19.  
  20. $mainframe = init::getFactory();
  21.  
  22. // Uruchamiamy strone
  23. $mainframe->component->checkAccess()->getPageContent();
  24.  
  25. debug::stopErrorCollect();


Routes.php
  1. <?php
  2.  
  3. /*
  4.   Plik z URLami
  5.  *
  6.  * AUTH:
  7.  * 0 = niepotrzebne
  8.  * 1 = user
  9.  * 2 = admin
  10.  *
  11.  */
  12.  
  13. $arrRoutes = array(
  14. 'url' => '/',
  15. 'component' => 'index',
  16. 'action' => 'initPage',
  17. 'parameters_get' => 0,
  18. 'parameters' => array(),
  19. 'needAuth' => 0
  20. ),
  21. 'url' => '/fbEntry/:data',
  22. 'component' => 'index',
  23. 'action' => 'initPage',
  24. 'parameters_get' => 1,
  25. 'parameters' => array(
  26. 0 => array('name' => 'data', 'type' => 'string', 'default' => '', 'method' => 'GET')
  27. ),
  28. 'needAuth' => 0
  29. ),
  30. 'url' => '/ref/:ref',
  31. 'component' => 'index',
  32. 'action' => 'initPage',
  33. 'parameters_get' => 1,
  34. 'parameters' => array(
  35. 0 => array('name' => 'ref', 'type' => 'int', 'default' => '', 'method' => 'GET')
  36. ),
  37. 'needAuth' => 0
  38. ),
  39. 'url' => '/przeliczenie/:pass',
  40. 'component' => 'resets',
  41. 'action' => 'fireReset',
  42. 'parameters_get' => 1,
  43. 'parameters' => array(
  44. 0 => array('name' => 'pass', 'type' => 'string', 'default' => '', 'method' => 'GET')
  45. ),
  46. 'needAuth' => 0
  47. ),
  48. 'url' => '/dane-mapy',
  49. 'component' => 'map',
  50. 'action' => 'showData',
  51. 'parameters_get' => 0,
  52. 'parameters' => array(),
  53. 'needAuth' => 1
  54. ),
  55. itd...
  56.  


htaccess
  1. Options -Indexes
  2.  
  3. <IfModule mod_rewrite.c>
  4. RewriteEngine On
  5. RewriteBase /
  6. RewriteCond %{REQUEST_FILENAME} !-f
  7. RewriteCond %{REQUEST_FILENAME} !-d
  8. RewriteRule . /index.php [L]
  9. </IfModule>


Dla zainteresowanych mogę podesłać więcej plików, proszę o pomoc w uruchomieniu mojej gry (IMG:style_emoticons/default/smile.gif)

Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 22.08.2025 - 16:00