Re: RewriteRule with a dot in URL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> 
> 
> 

-- 
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux