Welcome to WebmasterWorld Guest from 54.167.155.147

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Mod Rewriting Whole Directory

   
1:22 pm on Dec 28, 2006 (gmt 0)

10+ Year Member



I really hate to post here and not having tried and tried and tried ..

So I did just that last night until I almost threw the bloody laptop out the window.

What I am trying to do is simple:

I have a subdirectory /de/ where I would like to place a .htaccess to rewrite all underlying urls to one dynamic page, where the querystring is the rest of the path. My closest attempt was:

RewriteEngine on
RewriteRule ^(.+)$ pages.php?url=$1

which gives me 'pages.php' as my $url?!

Is anybody kind enough to help me here?

3:51 pm on Dec 28, 2006 (gmt 0)

10+ Year Member



The answer was here:

[webmasterworld.com...]

I created a loop - thanks Jim

hard find though ..

4:20 pm on Dec 28, 2006 (gmt 0)

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



... but a very common problem. The mod_rewrite [httpd.apache.org] documentation has a section titled Ruleset Processing [httpd.apache.org] that offers insight as to how the engine processes the rulesets.