Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [inne]Domena - bez www na początku - nie działa dobrze
nateria
post 29.03.2016, 18:48:48
Post #1





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 28.02.2009

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


Mam poważny problem z domeną. Gdy wpisuje adres w postaci netpiko.com to wszystko działa, strona się otwiera, ale jeśli wpisze www.netpiko.com (z www) to wyskakuje http://netpiko.com/netpiko/ Błąd 404

Oto mój plik .htaccess


# Turn on URL rewriting
RewriteEngine On

RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

# Installation directory
RewriteBase /

# Protect hidden files from being viewed
<Files .*>
Order Deny,Allow
Deny From All
</Files>

# Protect application and system files from being viewed
RewriteRule ^(?:private)\b.* index.php/$0 [L]

# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Rewrite all other URLs to index.php/URL
RewriteRule .* index.php [PT]
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: 24.07.2025 - 17:19