Wiki beautiful url's problem


#1

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


#2

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

ie

RewriteRule ^google/?

:cool: Perl / MySQL / HTML CSS


#3

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!!!