Re: mod_rewrite rule

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 4 Nov 2008 20:21:39 -0500,
"Eric Covener" <covener@xxxxxxxxx> 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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux