![]() |
![]() |
![]()
Post
#1
|
|
![]() Grupa: Zarejestrowani Postów: 134 Pomógł: 5 Dołączył: 9.08.2008 Skąd: Szczecin Ostrzeżenie: (0%) ![]() ![]() |
Witam, mam problem z odpaleniem linku, przekierowaniem htaccess w moim projekcie.
Postawiłem sobie lokalną maszynę na Ubuntu Server 14.04 Zrobiłem virtualhost, wgrałem pliki strony etc Mod_rewrite jest włączony na serwerze. Strona odpala się pod adresem projekt.srv, ale juz nie łapie jak przechodzi mi np do projekt.srv/rejestracja Cytat Not Found The requested URL /rejestracja was not found on this server. Konfiguracja etc/apache2/sites-available/projekt.conf Cytat <VirtualHost *:80> ServerName projekt.srv ServerAdmin webmaster@localhost DocumentRoot /home/web/projekt/public <Directory /home/web/projekt/public> Options Indexes FollowSymLinks MultiViews Order allow,deny allow from all AllowOverride All Require all granted </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost> plik .htaccess Cytat # Character encoding
#AddDefaultCharset utf-8 #AddType 'text/css; charset=utf-8' .css #AddType 'text/html; charset=utf-8' .html #AliasMatch /module/([^/]+)/(.*) ./../application/modules/$1/public/$2 - musi byc w vhost RewriteEngine On # RewriteCond %{HTTP_HOST} ^panel.*\.pl$ # RewriteCond %{SERVER_PORT} 80 # RewriteCond ^.(.*)$ https://%{HTTP_HOST}/$1 [R=301,L] #RewriteCond %{REQUEST_FILENAME} -s [OR] #RewriteCond %{REQUEST_FILENAME} -l [OR] #RewriteCond %{REQUEST_FILENAME} -d #RewriteRule ^.*$ - [NC,L] #RewriteRule ^.*$ index.php [NC,L] <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ./index.php [L] </IfModule> Ten post edytował tomekpl 25.04.2016, 10:04:35 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 21.08.2025 - 21:27 |