Re: RewriteRule with a dot in URL

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

 



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.

the .htaccess file :
RedirectMatch ^/wiki/([A-Z].*)$ http://wiki.tpkennes.com/$1
RewriteEngine on

# ban these abusive bots
RewriteCond %{HTTP_USER_AGENT} hl_ftien_spider_v1.1
RewriteRule .* - [F,L]

# anything that contains a dot without a colon should be left alone
RewriteRule ^(edit)/(.*)$ /wiki/index.php?action=$1&title=$2 [L,QSA]
RewriteRule ^insert/(.*)$ /wiki/index.php?action=edit&title=$1 [L,QSA]
RewriteRule ^(watch)/(.*)$ /wiki/index.php?action=$1&title=$2 [L,QSA]
RewriteRule ^(delete)/(.*)$ /wiki/index.php?action=$1&title=$2 [L,QSA]
RewriteRule ^(protect)/(.*)$ /wiki/index.php?action=$1&title=$2 [L,QSA]
RewriteRule ^(history)/(.*)$ /wiki/index.php?action=$1&title=$2 [L,QSA]
RewriteRule ^[^:]*\. - [L]

# anything that contains a slash without a colon should be left alone
RewriteRule ^[^:]*\/ - [L]
# redirect to main page

RewriteRule ^/*$ /wiki/index.php?title=Main_Page [L,QSA]

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


Joshua Slive-2 wrote:
> 
> On 7/16/07, Thierry Kennes <tpkennes@xxxxxxxxx> wrote:
>>
>> 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.
> 
> Statements like "it didn't worked" aren't going to get you anywhere.
> We need to know exactly what you tried, and exactly what the result
> was including messages in the browser and the server error and access
> logs. It would also be helpful to know what apache configuration is
> being used to activate 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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/RewriteRule-with-a-dot-in-URL-tf4077207.html#a11640409
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