Go Back   Trackpads Community > General Discussions > Computer and Technology > Web Design

Web Design Forums and discussions on webdesign

Web Design

Reply
 
LinkBack Thread Tools
Old 09-19-2005, 00:00   #1 (permalink)
Sig
Civilians

 
Default debug mod_rewrite

Is there a tool or a method to help debug mod_rewrite?

My immediate problem is that given

RewriteRule ^(.*)2z$ $0.jpg [L]
and http://example.org/3z.2z
I get "The requested URL /3z.2z.jpg was not found on this server."
I would expect to get /3z..jpg

--
Sig
(add three to my address to avoid spam filter)
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Trackpads Information
Click to Visit
Old 09-19-2005, 00:00   #2 (permalink)
John Bokma
Civilians

 
Default Re: debug mod_rewrite

caff987@logsin.org (Sig) wrote:

> Is there a tool or a method to help debug mod_rewrite?
>
> My immediate problem is that given
>
> RewriteRule ^(.*)2z$ $0.jpg [L]

^
$1?
<http://httpd.apache.org/docs/2.1/mod/mod_rewrite.html#rewriterule>
see beneath: "Here are all possible substitution combinations and their
meanings:"

--
John Perl SEO tools: http://johnbokma.com/perl/
Experienced (web) developer: http://castleamber.com/
Get a SEO report of your site for just 100 USD:
http://johnbokma.com/websitedesign/seo-expert-help.html
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-19-2005, 00:00   #3 (permalink)
Sig
Civilians

 
Default Re: debug mod_rewrite

On 19 Sep 2005 01:49:29 GMT, John Bokma <john@castleamber.com> wrote:

>caff987@logsin.org (Sig) wrote:
>
>> Is there a tool or a method to help debug mod_rewrite?
>>
>> My immediate problem is that given
>>
>> RewriteRule ^(.*)2z$ $0.jpg [L]

> ^
> $1?


It was the $0. Thank you.

(A tool, if there is one, would still be nice.)
--
Sig
(add three to my address to avoid spam filter)
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-19-2005, 08:00   #4 (permalink)
Brian Wakem
Civilians

 
Default Re: debug mod_rewrite

Sig wrote:

> On 19 Sep 2005 01:49:29 GMT, John Bokma <john@castleamber.com> wrote:
>
>>caff987@logsin.org (Sig) wrote:
>>
>>> Is there a tool or a method to help debug mod_rewrite?
>>>
>>> My immediate problem is that given
>>>
>>> RewriteRule ^(.*)2z$ $0.jpg [L]

>> ^
>> $1?

>
> It was the $0. Thank you.
>
> (A tool, if there is one, would still be nice.)



Given that the regular regular expressions are largely Perl compatible, you
could easy test it with Perl.


$ perl -e '$uri = "3z.2z"; $uri =~ s!^(.*)2z$!$1.jpg!; print "$uri\n";'

3z..jpg


--
Brian Wakem
Email: http://homepage.ntlworld.com/b.wakem/myemail.png
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help: mod_rewrite netporter@gmail.com Web Design 2 07-09-2005 12:00
New EA Debug utility for mappers and modders Josey Gaming club 0 08-04-2004 09:45
Finding a number and debug problem jay Microsoft Applications 43 07-31-2004 20:03
Use mod_rewrite and .htaccess to redirect subdomains? Bo Web Design 0 07-28-2004 01:03
iPAQ2215 hangs at the end of a soft reset (Wish for a debug-mode!) Bright Light Microsoft Applications 2 07-23-2004 19:37


Community Information
Options
Quick Options
Trackpads Non-Commercial Ad
Copyright Information Click to Visit
Time
Server Time
All times are GMT -4. The time now is 00:57.
Copyright
Copyright Information
The header is based off of work by Vipixel.com and modified by this site. Trackpads and the Trackpads Logo are both Registered Trademarks of Jason Edwards and cannot be used without prior written permission.  The only exception is as a link back to this site. Trackpads is a private website run by a small legion of volunteers, 3 dogs, 12.5 cats and an army of small, super smart, bio-engineered mice with pointy hats and tutu's. Search Engine Friendly URLs by vBSEO 3.2.0 RC7
Archive Links
Archive Links
Page generated in 0.83540 seconds with 18 queries