httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Boysenberry Payne <boysenbe...@humaniteque.com>
Subject Re: [users@httpd] help with rewrite rule
Date Mon, 17 Jul 2006 19:17:13 GMT
Sounds you might need something a little more complicated.

For example:

RewriteRule  ^(.*)habitat/(.*)$ 
http://localhost:81/pro/habitat.pl?account=data=$2 [P]

Allowing me to read the whole url then process it.

Otherwise you might want to rewrite for different directories, i.e. 
taking care of images
and the like.

Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Jul 17, 2006, at 2:04 PM, Mike Soultanian wrote:

> Boysenberry Payne wrote:
> > How about adding this:
> >
> > RewriteRule /(.*)(/)?$ http://localhost:81/$1/ [P]
> >
>
> That almost worked!
>
> That's interesting because it gets me through to the page, but still 
> leaves off the trailing slash.  That in turn breaks the relative links 
> which are looking for the trailing slash as can be seen here (I just 
> set up a dns entry for my server):
>
> http://cfdev.cota.csulb.edu/cota
>
> whereas if you put the trailing slash, the trailing slash is getting 
> appended to everything and seems to break other things on the site 
> such as images.  When trying to view:
>
> http://cfdev.cota.csulb.edu/cota/layouts/images/about/about-banner.jpg
>
> I'll get the following error:
>
> The requested URL /cota/layouts/images/about/about-banner.jpg/ was not 
> found on this server.
>
> Any ideas?
>
> Thanks!
> MIke
>
> ---------------------------------------------------------------------
> 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
>
>
>


---------------------------------------------------------------------
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