![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 1 729 Pomógł: 346 Dołączył: 4.04.2009 Ostrzeżenie: (0%) ![]() ![]() |
Chciałbym aby:
strona.pl/asdf/asdf kierowała na strona.pl/index.php?adres=asdf/asdf tralala.strona.pl/asdf/asdf kierowała na strona.pl/index.php?adres=asdf/asdf&subdomena=tralala tralala.strona.pl na strona.pl/index.php?subdomena=tralala jak dotąd udało mi się zrobić pierwszy element : .htaccess Kod RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?adres=$1 [L,QSA] vhost Kod <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot "c:/strona/public" ServerName strona.localhost ErrorLog "logs/strona.localhost.log" CustomLog "strona.localhost.log" common <directory "c:/strona/public"> Options Indexes FollowSymLinks AllowOverride all Order Deny,Allow Deny from all Allow from 127.0.0.1 </directory> </VirtualHost> serwer to świeżo zainstalowany wamp (z włączonym rewritem i vhost) |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 1 729 Pomógł: 346 Dołączył: 4.04.2009 Ostrzeżenie: (0%) ![]() ![]() |
To co pokazałem tworzy tylko przekierowanie na index i geta (IMG:style_emoticons/default/smile.gif)
|
|
|
![]() ![]() |
![]() |
Aktualny czas: 14.10.2025 - 15:47 |