Re: RewriteRule with a dot in URL

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

 



On 7/16/07, Thierry Kennes <tpkennes@xxxxxxxxx> wrote:

I've just tried :
RewriteRule ^Test\.com$ Testcom
and
RewriteRule (.*)\.(.*) $1$2
as you suggested.

Here is the message i get with the browser : The requested URL /Test.com was
not found on this server.

Server error and access logs (and often the RewriteLog) are
indispensable when doing debugging. In this case, however, I can make
a guess for you based on the config you posted.

RewriteRule ^[^:]*\. - [L]

# anything else is to be treated as a title
RewriteRule ^(.+)$ /wiki/index.php?title=$1 [L,QSA]

The RewriteRule that excludes files with dots is probably there to
make it easier to access static content. There are several
alternatives, such as testing directly if the static content exists on
the disk, or being more specific about the static content you want to
exclude.

But in the interest of giving you a minimal change to get things
working, you can likely just insert ABOVE that first RewriteRule I
quote, some specific cases that you don't want to exclude. For
example:

RewriteRule ^Test\.com$ /wiki/index.php?title=Test.com [L,QSA]
(You might need to use Testcom in place of Test.com in the query
string depending on the other restrictions imposed by Mediawiki.)

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


[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