![]() | ![]() | ![]() |
| |||||||
| Forums | Register | Groups | Awards | Arcade | Pets | T-Bucks / T-Store | Invite Your Friends | All Albums | Projects | Blogs | Mark Forums Read |
| Web Design Forums and discussions on webdesign |
Web Design | |||||||||
|
|
|
|
| |||||
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| Civilians | 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) |
|
| | #2 (permalink) |
| Civilians | 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 |
|
| | #3 (permalink) |
| Civilians | 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) |
|
| | #4 (permalink) |
| Civilians | 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 |
|
![]() |
| Bookmarks |
| Thread Tools | |
| |
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 |
![]() | ![]() | ![]() |