Re: [users@httpd] mod_rewrite question on directory

2019-06-13 Thread Frank
Jim, Using mod_alias or mod_rewrite with [R] is functionally equivalent, yes. The former is simpler and easier to maintain, of course. Note that you can use RedirectMatch if you need PCRE support and/or captured expressions. On 12/06/19 05:42 PM, Jim Weill wrote: > So just to make sure I have th

Re: [users@httpd] mod_rewrite question on directory

2019-06-12 Thread Jim Weill
So just to make sure I have this correct: the main production server has a couple pages of rewrites for old URLs and home pages that moved servers or changed path. And changing the baseURL with a Redirect directive in a vhost instead of mod_rewrite will not break any of that? jim On Tue, Jun 11

Re: [users@httpd] mod_rewrite question on directory

2019-06-11 Thread Igor Cicimov
Agree, much better than all that rewrite gymnastics. IC On Wed, Jun 12, 2019, 6:30 AM Frank wrote: > No, I assure you, ,mod_rewrite is not needed here. > > To enforce a canonical hostname, use the Redirect directive and separate > vhost. To have all requests handled by a php routing script, use

Re: [users@httpd] mod_rewrite question on directory

2019-06-11 Thread Frank
No, I assure you, ,mod_rewrite is not needed here. To enforce a canonical hostname, use the Redirect directive and separate vhost. To have all requests handled by a php routing script, use FallbackResource /path/to/file.php Lastly, to redirect to https://, use Redirect from a :80 vhost. On 11/06

Re: [users@httpd] mod_rewrite question on directory

2019-06-11 Thread Jim Weill
The sites I am trying to model are drupal-based. We aren't dealing with plain static HTML or PHP sites. We have the main server, which this test server is trying to mirror, and a secondary project server which exists to give project people limited root access to update their own code. The second

Re: [users@httpd] mod_rewrite question on directory

2019-06-11 Thread Frank
You are also grossly abusing mod_rewrite for this. It isn't needed at all. Use FallbackResource, Redirect, and separate vhosts, as Igor mentioned. On 11/06/19 01:33 AM, Igor Cicimov wrote: > Since you already have two separate domains why not use virtual hosts > each with it's own document root?

Re: [users@httpd] mod_rewrite question on directory

2019-06-10 Thread Igor Cicimov
Since you already have two separate domains why not use virtual hosts each with it's own document root? IC On Tue, Jun 11, 2019, 9:18 AM Jim Weill wrote: > We have a test server, with test sites that are in two different branches > of development, but essentially the same base content. They li

[users@httpd] mod_rewrite question on directory

2019-06-10 Thread Jim Weill
We have a test server, with test sites that are in two different branches of development, but essentially the same base content. They live at /x/y/z/testsite and /x/y/z/test-site. We have other sites such as wikis and one-offs which need to stay online on our production server, and I have been te

Re: [users@httpd] mod_rewrite question

2013-08-08 Thread Eric Covener
On Thu, Aug 8, 2013 at 8:20 PM, Noah Duffy wrote: > On Aug 8, 2013, at 7:12 PM, wrote: > >> I have the following URL that is no longer valid >> https://cms.example.com/enterprise/registration/browserinstructions.jsp?productID=100 >> and I have beat myself silly trying to get it to redirect to t

RE: [users@httpd] mod_rewrite question

2013-08-08 Thread Ward.P.Fontenot
My bad, this is a site that uses a fair amount of simple rewrite rules and they are all working correctly. -Original Message- From: Noah Duffy [mailto:noahdu...@fastmail.fm] Sent: Thursday, August 08, 2013 5:20 PM To: users@httpd.apache.org Subject: Re: [users@httpd] mod_rewrite question

Re: [users@httpd] mod_rewrite question

2013-08-08 Thread Noah Duffy
On Aug 8, 2013, at 7:12 PM, wrote: > I have the following URL that is no longer valid > https://cms.example.com/enterprise/registration/browserinstructions.jsp?productID=100 > and I have beat myself silly trying to get it to redirect to the new correct > URL > https://cms.example.com/enterpri

[users@httpd] mod_rewrite question

2013-08-08 Thread Ward.P.Fontenot
I have the following URL that is no longer valid https://cms.example.com/enterprise/registration/browserinstructions.jsp?prod uctID=100 and I have beat myself silly trying to get it to redirect to the new correct URL https://cms.example.com/enterprise/registration/InternalPersonalCertificates .do?d

RE: [users@httpd] mod_rewrite Question

2012-12-29 Thread Martin, Stanley G
Dec/2012:09:43:15 --0600] [ckcftpa2/sid#26c828][rid#61623f0/initial] (1) [perdir E:/cmdbnew/] pass through E:/cmdbnew/USDADPRTSPW01 From: Akash Jain [mailto:akash.delh...@gmail.com] Sent: Friday, December 28, 2012 10:40 PM To: users@httpd.apache.org Subject: Re: [users@httpd] mod_rewrite Question R

Re: [users@httpd] mod_rewrite Question

2012-12-28 Thread Igor Cicimov
r Team | Outsourcing Services >> >> >> ** ** >> >> Capgemini "US" | KCSC Service Center >> >> Tel.: (816) 347-7692 – Mob.: (816) 284-7415 >> >> www.capgemini.com >> >> ** ** >> >> 777 NW Blue Pkwy >> >> Lee's Summit, MO64086 >> >> *People matter, results

Re: [users@httpd] mod_rewrite Question

2012-12-28 Thread Akash Jain
*People matter, results count.*** > > ___________*** > * > > ** ** > > *From:* Igor Cicimov [mailto:icici...@gmail.com] > *Sent:* Friday, December 28, 2012 10:19 PM > *To:* users > *Subject:* Re: [users@httpd] mod_r

RE: [users@httpd] mod_rewrite Question

2012-12-28 Thread Martin, Stanley G
_ From: Igor Cicimov [mailto:icici...@gmail.com] Sent: Friday, December 28, 2012 10:19 PM To: users Subject: Re: [users@httpd] mod_rewrite Question On 29/12/2012 3:12 PM, "Martin, Stanley G" mailto:stanley.mar...@capgemini.com>> wrote: > > I have been banging my

Re: [users@httpd] mod_rewrite Question

2012-12-28 Thread Igor Cicimov
On 29/12/2012 3:12 PM, "Martin, Stanley G" wrote: > > I have been banging my head against the wall on this and when I think I finally have it, it doesn’t work. I’ve been able to get some basic stuff to work like: > > > > Setting DirectoryIndex > > And doing a simple redirect. > > > > But, what I

[users@httpd] mod_rewrite Question

2012-12-28 Thread Martin, Stanley G
I have been banging my head against the wall on this and when I think I finally have it, it doesn't work. I've been able to get some basic stuff to work like: Setting DirectoryIndex And doing a simple redirect. But, what I really want to do is make the URI cleaner so that the users don't see t

Re: [users@httpd] mod_rewrite question

2012-10-01 Thread [radoo]
Hi, have you considered to use 'aliases' for simple URI? http://httpd.apache.org/docs/2.2/mod/mod_alias.html Regards, Rado On Tue, Sep 25, 2012 at 11:25 PM, Ashley M. Kirchner wrote: > Hi folks, > > I'm hoping someone can help me figure this out. We own the domain > 'fairviewbands.org' which at

[users@httpd] mod_rewrite question

2012-09-25 Thread Ashley M. Kirchner
Hi folks, I'm hoping someone can help me figure this out. We own the domain 'fairviewbands.org' which at the moment is a redirect to our school's page at 'fairviewhs.org/sites/band'. If you visit that page, there are several menu items on the left. All of them (except the Overview and Calendar

[users@httpd] mod_rewrite question

2012-03-30 Thread Bobb, Kirth Andre (US - Arlington)
I’m attempting to replace all the spaces with ‘%20’ when URLs are passed via a proxy. I have the following Rewrite Rule added to my httpd.conf on the Apache 2 Proxy server I’m running. RewriteEngine on RewriteLogLevel 5 RewriteLog logs/rewrite_logs.log RewriteRule ^/(.+)\ (.+)$ /$1\%20$2 [R, NE

Re: [users@httpd] mod_rewrite question(s)

2005-06-29 Thread Steve Blandford
Fantastic! I moved RewriteEngine On RewriteLog "/var/log/httpd/rewrite_log" RewriteLogLevel 8 into the VirtualHost and the logging is now working. Many thanks! The one thing left for me to accomplish is to either; 1. rewrite all .php requests as https or 2. rewrite a specific http://...

Re: [users@httpd] mod_rewrite question(s)

2005-06-29 Thread Joshua Slive
On 6/29/05, Steve Blandford <[EMAIL PROTECTED]> wrote: > > Joshua, > > thanks for the quick response. > > To address your comments; > > the RewriteEngine On command is just above the Virtual host section (5th > line from the top of the snippet) I believe the RewriteEngine directive

Re: [users@httpd] mod_rewrite question(s)

2005-06-29 Thread Steve Blandford
Joshua, thanks for the quick response. To address your comments;  the  RewriteEngine On command is just above the Virtual host section (5th line from the top of the snippet) I've removed the % signs and nothing changed in the operation of the rewrite. So the %age sign was superfluous. N

Re: [users@httpd] mod_rewrite question(s)

2005-06-29 Thread Joshua Slive
On 6/29/05, Steve Blandford <[EMAIL PROTECTED]> wrote: > Another problem I am seeing is even though I have logging turned on in > my conf file, and that the log file was created, nothing has been > written to it... > > Here is the portion of my conf file relating to the problem. (domain > names ha

[users@httpd] mod_rewrite question(s)

2005-06-29 Thread Steve Blandford
I've been trying to use mod_rewrite to have http calls on a couple of directories and either all .php or one specific .php file rewritten as https calls. I have been able to use to rewrite but I cannot for the life of me get a rewrite of http://www.domain.com/.php to rewrite to https://ww