httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Seb <splu...@gmail.com>
Subject [users@httpd] Re: mod_rewrite rule
Date Wed, 05 Nov 2008 01:35:20 GMT
On Tue, 4 Nov 2008 20:21:39 -0500,
"Eric Covener" <covener@gmail.com> wrote:

[...]

> What does it do?  Can you enable the RewriteLog?  Do you have
> RewriteEngine on? Are your htaccess files being read (AllowOverride
> none)

Yes, the .htaccess file at the top of the user public directory works
really well, and it only has 3 lines:

---<---------------cut here---------------start-------------->---
RewriteEngine on
RewriteRule	^weblog?(.*)$	/cgi-bin/pyblosxom.cgi$1   [L]
RewriteRule     ^gallery?(.*)$  /gallery2$1                [L]
---<---------------cut here---------------end---------------->---

and my user needs to have a directory Path/ have a lower case URI (as
http://some.host.com/~user/path).  With the rule I tried:

RewriteRule ^path(.*)$ /Path$1 [last]

I get:

---<---------------cut here---------------start-------------->---
Not Found
The requested URL /Path was not found on this server.
---<---------------cut here---------------end---------------->---

and if I try:

RewriteRule ^path(.*)$ Path$1 [last]

I get:

---<---------------cut here---------------start-------------->---
Not Found
The requested URL /home/user/WWW/Path was not found on this server.
---<---------------cut here---------------end---------------->---

which is closer.  WWW is the directory set as public via mod_userdir.


-- 
Seb


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