httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frank Gingras <francois.ging...@gmail.com>
Subject Re: [users@httpd] Using Rewrite
Date Thu, 13 Aug 2009 18:50:06 GMT
In that case, you should replicate the site on a local development 
server, and test at your leisure there.

Frank.

Ya Netu wrote:
>   i guess that is impossible under shared hosting :(
>  
>  > Date: Thu, 13 Aug 2009 14:38:52 -0400
>  > From: francois.gingras@gmail.com
>  > To: users@httpd.apache.org
>  > Subject: Re: [users@httpd] Using Rewrite
>  >
>  > You would place it in your config file, in your <VirtualHost>
>  > </VirtualHost> section.
>  >
>  > If you don't have any virtual host, the main config file will do.
>  >
>  > Frank.
>  >
>  > Ya Netu wrote:
>  > > damn, ok then how do i actiavte it?
>  > >
>  > > > Date: Thu, 13 Aug 2009 14:35:33 -0400
>  > > > From: francois.gingras@gmail.com
>  > > > To: users@httpd.apache.org
>  > > > Subject: Re: [users@httpd] Using Rewrite
>  > > >
>  > > > Ya,
>  > > >
>  > > > You can't use RewriteLog in .htaccess.
>  > > >
>  > > > Frank.
>  > > >
>  > > > Ya Netu wrote:
>  > > > > same here,
>  > > > > when i was trying to add this line:
>  > > > >
>  > > > > RewriteLog "AA/rewrite.log"
>  > > > >
>  > > > > To trace why my rewrite did not work, I got 500 Internal server

> error.
>  > > > > Any ideas what could be causing it? I tried adding leading slash
>  > > but no
>  > > > > luck... the ath is relative to location of my .htaccess file.
>  > > > >
>  > > > > TNX for help
>  > > > > Date: Thu, 13 Aug 2009 11:37:05 -0600
>  > > > > From: rab4585@gmail.com
>  > > > > To: users@httpd.apache.org
>  > > > > Subject: Re: [users@httpd] Using Rewrite
>  > > > >
>  > > > > Bob thank you, but i receiving a new error me ssage the http 
> 500 and I
>  > > > > do not have access to httpd.conf and also do not know how.
>  > > > >
>  > > > > 2009/8/12 Bob Ionescu <bobsiegen@googlemail.com>
>  > > > >
>  > > > > 2009/8/12 Alexis <rab4585@gmail.com>:
>  > > > > > ok, then the code would be
>  > > > > > RewriteCond %{HTTP_HOST} ^files\.example\.com$ [NC] RewriteRule
>  > > > > ^(.*)$
>  > > > > > /files/public$1 [L]
>  > > > > > or am i wrong?
>  > > > >
>  > > > > Unless you put RewriteEngine off in a .htaccess file located in

> your
>  > > > > files/public/ folder, that would result in an infinite loop. 
> But only
>  > > > > if you correct your rule. Since there is no leading slash in the
>  > > > > string tested against your regular expression in .htaccess files,
>  > > > > you'd rewrite to /files/publicarchivo.txt instead of
>  > > > > /files/public/archivo.txt
>  > > > >
>  > > > > # we can change to a lex. equal comparison here
>  > > > > RewriteCond %{HTTP_HOST} =files.example.com [NC]
>  > > > > # exclude th folder
>  > > > > RewriteCond $1 !^/files/public/
>  > > > > RewriteRule ^(.*) /files/public/$1 [L]
>  > > > >
>  > > > >
>  > > > > Setting the DocumentRoot for files.example.com in your 
> httpd.conf to
>  > > > > /home/example/public_html/files/public would be another (may be
the
>  > > > > regular) approach.
>  > > > >
>  > > > > Bob
>  > > > >
>  > > > > 
> ---------------------------------------------------------------------
>  > > > > The official User-To-User support forum of the Apache HTTP Server
>  > > > > Project.
>  > > > > See <URL:http://httpd.apache.org/userslist.html> for more
info.
>  > > > > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>  > > > > " from the digest: users-digest-unsubscribe@httpd.apache.org
>  > > > > For additional commands, e-mail: users-help@httpd.apache.org
>  > > > >
>  > > > >
>  > > > >
>  > > > >
>  > > > > --
>  > > > > Alexis Beltran
>  > > > > skype: blexis.sv
>  > > > > blog: http://blexis.net
>  > > > >
>  > > > > Express your personality in color! Preview and select themes for
>  > > > > HotmailĀ®. Try it now.
>  > > > >
>  > > 
> <http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=PID23391::T:WLMTAGL:ON:WL:en-US:WM_HYGN_express:082009>
>  > > >
>  > > >
>  > > > ---------------------------------------------------------------------
>  > > > The official User-To-User support forum of the Apache HTTP Server
>  > > Project.
>  > > > See <URL:http://httpd.apache.org/userslist.html> for more info.
>  > > > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>  > > > " from the digest: users-digest-unsubscribe@httpd.apache.org
>  > > > For additional commands, e-mail: users-help@httpd.apache.org
>  > > >
>  > >
>  > > Get your vacation photos on your phone! Click here.
>  > > 
> <http://windowsliveformobile.com/en-us/photos/default.aspx?&OCID=0809TL-HM>
>  >
>  >
>  > ---------------------------------------------------------------------
>  > The official User-To-User support forum of the Apache HTTP Server 
> Project.
>  > See <URL:http://httpd.apache.org/userslist.html> for more info.
>  > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>  > " from the digest: users-digest-unsubscribe@httpd.apache.org
>  > For additional commands, e-mail: users-help@httpd.apache.org
>  >
> 
> Windows Liveā„¢: Keep your life in sync. Check it out. 
> <http://windowslive.com/explore?ocid=PID23384::T:WLMTAGL:ON:WL:en-US:NF_BR_sync:082009>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message