ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Denis G. Samsonenko" <earthsea@ngs.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Re: apache & aliases
Date: Thu, 07 Apr 2005 06:05:29 -0500
Message-ID: <425513F9.9090805@ngs.ru> (raw)
In-Reply-To: <4254F580.80503@inbox.ru>

Hi!

Eugene A. Suchkov пишет:
>> Не пожскажете ли, в какое место httpd.conf это надо прописать, а то я 
>> как-то из документации не уразумел. Надо ли это писать между <Directory 
>> /var/www/html> и </Directory>, или вне?
> 
> 1) Спросите у гугля "введение в mod_rewrite"
> 2) Неплохое место .htaccess

Спасибо, я уже разобрался с ним. Вписал в httpd.conf

# Redirect for chair
<IfModule mod_rewrite.c>
     RewriteEngine On
     RewriteRule ^/chair/(.*) /~secretary/$1 [R,L]
</IfModule>

Соответственно предварительно раскоментировал строки загрузки 
соответствующего модуля.

Всё работает, но меня смущает одно обстоятельство. В строке адреса в 
браузере происходит подмена /chair/ на /~secretary/. А мне хотелось бы, 
чтобы в строке адреса как был /chair/, так и остался бы.

-- 
Всего доброго,

Денис.

---------------
earthsea@ngs.ru



  reply	other threads:[~2005-04-07 11:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-07  8:04 [Comm] " Denis G. Samsonenko
2005-04-07  7:07 ` [Comm] " Michael Shigorin
2005-04-07  9:39   ` Denis G. Samsonenko
2005-04-07  8:55     ` Eugene A. Suchkov
2005-04-07 11:05       ` Denis G. Samsonenko [this message]
2005-04-07 13:18         ` Michael Shigorin
2005-04-07 17:19           ` Denis G. Samsonenko
2005-04-08  8:49             ` Michael Shigorin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=425513F9.9090805@ngs.ru \
    --to=earthsea@ngs.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git