Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17783

I'm stumped by this bit of apache .htaccess file mod_rewrite syntax... Can an Apache admin help?

$
0
0

I'm actually quite comfortable with regular expressions, but I'm troubleshooting a client's webserver and his .htaccess mod_rewrite directives are causing an issue. Problem is, I can't understand the syntax!

Here's the bit (lines 3-4 are the mystery):

<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$ RewriteRule ^(.*) - [E=BASE:%1] 

What is this :: sorcery? I can find nothing explanatory about it on the web. Anyone familiar with it? Thanks!

submitted by sprashoo
[link][11 comments]

Viewing all articles
Browse latest Browse all 17783

Trending Articles