homepage Welcome to WebmasterWorld Guest from 54.146.175.204
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Mod Rewriting Whole Directory
mifi601

10+ Year Member



 
Msg#: 3201698 posted 1:22 pm on Dec 28, 2006 (gmt 0)

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?

 

mifi601

10+ Year Member



 
Msg#: 3201698 posted 3:51 pm on Dec 28, 2006 (gmt 0)

The answer was here:

[webmasterworld.com...]

I created a loop - thanks Jim

hard find though ..

coopster

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



 
Msg#: 3201698 posted 4:20 pm on Dec 28, 2006 (gmt 0)

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved