Unlimited Usenet
day retention, 99% Completion, Unlimited Access, Free Trial!

mod_rewrite and special characters - HELP!

This is a discussion on mod_rewrite and special characters - HELP! within the Linux Web Servers forums, part of the Web Server and Related Forums category; I am using mod_rewrite with a small PHP content manager. I put the following in .htaccess: RewriteEngine on RewriteBase /site ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-30-2003
hknight
 
Posts: n/a
Default mod_rewrite and special characters - HELP!

I am using mod_rewrite with a small PHP content manager.

I put the following in .htaccess:

RewriteEngine on
RewriteBase /site
RewriteRule ^pages/(.*).html index.php?$1
RewriteRule ^pages/(.*) index.php?$1

All pages work except pages with special characters in the url.

For example,
/site/pages/joe'spage.html does not work
/site/pages/joe%27spage.html does not work
/site/pages/joe%2527spage.html DOES WORK

For some strange reason, I need to replace all instances of "%" with
"%25"

I cannot do this with my content manager-- I want to solve the
problem with mod_rewrite.

What can I put in .htaccess to make it properly handle urls that have
% and other special characters in them?

Thanks!
  #2 (permalink)  
Old 07-31-2003
JP. Baker
 
Posts: n/a
Default Re: mod_rewrite and special characters - HELP!

In article <c3c55ce2.0307301306.4fdb6141@posting.google.com >,
hknight <hknight@graffiti.net> wrote:
>I am using mod_rewrite with a small PHP content manager.
>
>I put the following in .htaccess:
>
> RewriteEngine on
> RewriteBase /site
> RewriteRule ^pages/(.*).html index.php?$1
> RewriteRule ^pages/(.*) index.php?$1
>
>What can I put in .htaccess to make it properly handle urls that have
>% and other special characters in them?


Add the [NE] flag?

nhoJ
--
John P Baker
  #3 (permalink)  
Old 07-31-2003
hknight
 
Posts: n/a
Default Re: mod_rewrite and special characters - HELP!

>
> Add the [NE] flag?
>


Good idea. But it doesn't help.

I tried
RewriteEngine on
RewriteBase /pcc2
RewriteRule ^pages/(.*).html index.php?$1 [NE]
RewriteRule ^pages/(.*) index.php?$1 [NE]

And it still does not work.

I also tried
RewriteEngine on
RewriteBase /pcc2
RewriteRule ^pages/(.*).html index.php?$1 [NE]
RewriteRule ^pages/(.*) index.php?$1 [NE]
RewriteRule ^(.*)%(.*)$ $1%25$2 [N]

and it DID NOT work either . . .
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 08:29 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0