wiki beautiful url's problem

wiki beautiful url's problem

Posted by: bigreat
Posted on: 2006-06-22 04:00:00

Hi,
I rewrote the .hcaccess file, and made my wiki can be visited with the url: "kaoshi.wobuxihuan.org/google" or else.

However, today I found a major search engin sogou, it shows my wiki's url like this: "kaoshi.wobuxihuan.org/google/"

because of the "/",
that url("kaoshi.wobuxihuan.org/google/") is inaccessable.

What can I do, Thanks

Re: wiki beautiful url's problem

Posted by: Atropos7
Posted on: 2006-06-22 09:27:00

You need to modify the regexp to check for the presence of a trailing slash.

ie

RewriteRule ^google/?


cool Perl / MySQL / HTML CSS

Re: wiki beautiful url's problem

Posted by: bigreat
Posted on: 2006-06-24 23:48:00

HI,
Here is the .htaccess
# test if rewrite should stop for
# special directories
RewriteRule ^(images|skins)/ - [L]
# all php scripts.
RewriteRule .php$ - [L]

# uncomment this rule if you want Apache to redirect from www.mysite.com/ to
# www.mysite.com/Main_Page
# RewriteRuin_Page [R]
#RewriteRule ^$ /wiki [R,L]

# do the rewrite
#RewriteRule ^wiki/?(.*)$ /index.php?title=$1 [L,QSA]
RewriteRule ^/?(.*)$ /index.php?title=$1 [L,QSA]


however,
I want to redirect /google/ to /google
how can i do this?
thanks!!!!!

Tags: urlgooglewikiorg