httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thierry Kennes <tpken...@gmail.com>
Subject Re: [users@httpd] RewriteRule with a dot in URL
Date Mon, 16 Jul 2007 22:49:28 GMT

Thanks Joshua for your advice.
Though it didn't worked. It's like if the server is trying to find a file
named "Test.com" like if it was index.php.
So i don't know what should i have to do ... btw, i'm using mediawiki.



Joshua Slive-2 wrote:
> 
> When you say "it doesn't work because of the dot", what exactly does
> that mean? Your wiki software doesn't support that type of file name?
> If so, you can indeed hide the true name using mod_rewrite with
> something like
> RewriteRule (.*)\.(.*) $1$2
> 
> I wouldn't suggest using a rule exactly like that, however, since it
> could lead to undesired (and possible dangerous) rewriting. Try
> something more specific like
> RewriteRule ^Test\.com$ Testcom
> (with the possible addition of an appropriate RewriteBase directive)
> or if you use httpd.conf instead of .htaccess
> RewriteRule ^/Test\.com$ /Testcom
> 
> Joshua.
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/RewriteRule-with-a-dot-in-URL-tf4077207.html#a11638593
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message