This code works
- Code: Select all
RewriteEngine on
RewriteBase /
RewriteRule ^test/testing/?$ test-testing.html
When accessing http://example.com/test/testing I've got http://example.com/test-testing.html
But if I change simply to
- Code: Select all
RewriteRule ^test/([a-zA-Z]+)/?$ test-$1.html
I've got url: test-.html (so the $1 is empty, but rewrite works!)
- Code: Select all
RewriteRule ^test/([a-zA-Z]+)/([a-zA-Z]+)/([a-zA-Z]+)/?$ ($0)_($1)_($2)_($3)_($4)_($5).html
When accessing http://example.com/test/first/second/third/
I've got URL:
/()_(second/)_()_()_()_().html
The bolded seemed to me very strange...
I've Apache/1.3.33 (Unix) mod_perl/1.29 on this server. I've copy of httpd.conf of this server so I can look for some config settings...
All this rewrites works on test machine and two other servers...