MaKo
 
7.-Apr-2004 05:23 pm
Help! Kurš ir .htaccess faila izveidošanas Guru?
Comments 
7.-Apr-2004 05:32 pm - I iz neesmu guru
Bet saki ko vajag.
Vai arī RTFM :)
7.-Apr-2004 05:47 pm
a ko vajaga?
7.-Apr-2004 06:01 pm
Ir lapa www.eurosports.lv
un www.karate.lv un www.sportshop.lv raada uz to pashu
www.eurosports.lv saturu.

Man vajag, lai .htaccess noraadiitu, ka klients, kas ievadiijis
www.karate.lv tiek aizmests uzreiz uz
http://www.eurosports.lv/modules.php?name=News&new_topic=14 a tas, kas
www.sportshop.lv veelas - uz
http://www.eurosports.lv/modules.php?op=modload&name=La_boutique



Lasu es
http://web-wise-wizard.com/perl-scripts-cgi-apache-tutorials/apache-httpd-access-files-tutorial.html
un http://httpd.apache.org/docs/mod/mod_rewrite.html
Un ne suudu nesaprotu.

Cik saprotu, ar rewrite paliidziibu to tak var izdariit?
7.-Apr-2004 06:24 pm
vajadziigi papildus virtual host prieksh www.karate.lv un www.sportshop.lv - ar .htaccess vareetu nepietikt.
(varbutu arii var ar htaccess iztikt, tur visaadi advanceeti fišķi ir, bet nu...)

a kad buus virtual host, ieraxtiisi tur
RewriteEngine On
Redirect / http://www.eurosports.lv/modules.php?name=News&new_topic=14

7.-Apr-2004 09:37 pm
Nea. Noteikums - ar htaccess iztikt .
Tas vieniigais, pie kaa man pasham pieeja.
7.-Apr-2004 06:29 pm
[Error: Irreparable invalid markup ('<virtualhost *:80>') in entry. Owner must fix manually. Raw contents below.]


# www.karte.lv
<VirtualHost *:80>
ServerAdmin admin@karte.lv
DocumentRoot /web/www.karate.lv
ServerName www.karate.lv
ErrorLog logs/www.karate.lv-error_log
CustomLog logs/www.karate.lv-access_log common

RewriteEngine on
RewriteRule ^(.*) http://www.eurosports.lv/modules.php?name=News&new_topic=14 [R,L]
</VirtualHost>

# www.sportshop.lv
<VirtualHost *:80>
ServerAdmin admin@sportshop.lv
DocumentRoot /web/www.sportshop.lv
ServerName www.sportshop.lv
ErrorLog logs/www.sportshop.lv-error_log
CustomLog logs/www.sportshop.lv-access_log common

RewriteEngine on
RewriteRule ^(.*) http://www.eurosports.lv/modules.php?op=modload&name=La_boutique [R,L]
</VirtualHost>
7.-Apr-2004 09:38 pm
nelaime taada, ka document root visiem viens un tas pac.
8.-Apr-2004 08:38 am
join irc.apollo.lv, channel #php.lv assk kaadam taa pratiigi, tu baig iincanc gadijums....


8.-Apr-2004 08:58 am - Ar mod_rewrite

Pieļauju, ka šo var izdarīt arī ar RedirectMatch, bet te būs Rewrite* piemērs:



Options FollowSymLinks
RewriteEngine On

# Parbaudam, vai pieprasita hostname ir 
# HOST1
RewriteCond %{HTTP_HOST} ^HOST1$ [NC]
# Ja mums nav neas aiz adreses, tad 
# redirektajam un beidzam IFus
RewriteRule ^$ FULLY_QUALIFIED_URI [L]

# Parbaudam, vai pieprasita hostname ir 
# HOST1
RewriteCond %{HTTP_HOST} ^$HOST2$ [NC]
# Ja mums nav neas aiz adreses, tad 
# redirektajam un beidzam IFus
RewriteRule ^$ FULLY_QUALIFIED_URI [L]
14.-Apr-2004 09:33 am - Re: Ar mod_rewrite
Laikam esu dumsh... Vai taa, kaa zemaak uzrakstiiju?

Options FollowSymLinks
RewriteEngine On

# Parbaudam, vai pieprasita hostname ir
# HOST1
RewriteCond %{HTTP_HOST} ^www.karate.lv$ [NC]
# Ja mums nav neas aiz adreses, tad
# redirektajam un beidzam IFus
RewriteRule ^$ http://www.eurosports.lv/modules.php?name=News&new_topic=14 [L]

# Parbaudam, vai pieprasita hostname ir
# HOST2
RewriteCond %{HTTP_HOST} ^$www.sportshop.lv$ [NC]
# Ja mums nav neas aiz adreses, tad
# redirektajam un beidzam IFus
RewriteRule ^$ http://www.eurosports.lv/modules.php?op=modload&name=La_boutique [L]
7.-Apr-2004 07:57 pm
googlis.. bet citaadi esmu :)
14.-Apr-2004 09:36 am
Vajadzeeja man tevi sestdien izprashnjaat...
Kur ir kljuuda shai konstrukcijaa?

Options FollowSymLinks
RewriteEngine On

# Parbaudam, vai pieprasita hostname ir
# HOST1
RewriteCond %{HTTP_HOST} ^www.karate.lv$ [NC]
# Ja mums nav neas aiz adreses, tad
# redirektajam un beidzam IFus
RewriteRule ^$ http://www.eurosports.lv/modules.php?name=News&new_topic=14 [L]

# Parbaudam, vai pieprasita hostname ir
# HOST2
RewriteCond %{HTTP_HOST} ^$www.sportshop.lv$ [NC]
# Ja mums nav neas aiz adreses, tad
# redirektajam un beidzam IFus
RewriteRule ^$ http://www.eurosports.lv/modules.php?op=modload&name=La_boutique [L]
13.-Apr-2004 02:25 pm
pornosaits kliedz peec memberu zonas?
14.-Apr-2004 06:32 am
Laikam nemāki lasīt?
14.-Apr-2004 09:42 am
nu bet tieshi taa tur ir rakstiits. pilniiga pornograafija.
This page was loaded Jan 24. 2025, 2:51 am GMT.