English 中文(简体)
URL 重写工作
原标题:URL rewriting doesn t work

表格中有几页:

我想以这种形式出现:

http://www.saglikkosesi.net/soru-ve-yanitlari-goster/page/2

我使用以下代码:

Options +FollowSymLinks
RewriteEngine on
RewriteRule soru-ve-yanitlari-goster/page/(.*)/ soru-ve-yanitlari-goster?page=$1
RewriteRule soru-ve-yanitlari-goster/page/(.*) soru-ve-yanitlari-goster?page=$1 

无改动。 我可以做些什么来解决这个问题? (我为我的网站使用压力平台。) 但是,由于这页是外部网页,我可以通过WP行政控制这些网页,因此我可以不使用垂直通道。

问题回答

您的阿帕帕奇组合是否能够确保<代码>。

顺便提一句,请在<代码>和>上设置;在您的<代码>部分中添加>。

查阅查询和记录有关部分:

RewriteCond %{QUERY_STRING} ^page=(d+)
RewriteRule ^/soru-ve-yanitlari-goster$ soru-ve-yanitlari-goster/page/%1?




相关问题
How to use redirect_to to a non-Rails URL with query params?

We just had an existing use of redirect_to break due to a Rails upgrade, and it led to a question. I ve been experimenting, and I don t seem to find a way to use redirect_to to send the user to a non-...

Apache authentication: Redirect on failure, reliably?

I ve set my ErrorDocument 401 to point to my website s account creation page, but not all browsers seem to honor this redirect (Safari). Also, other browsers (Firefox, Chrome) never quit asking for ...

Response.Redirect HTTP status code

Why is it that ASP/ASP.NET Response.Redirect uses a HTTP-302 status code ("Moved Temporarily") even though in most cases a HTTP-301 status code ("Moved Permanently") would be more appropriate?

Exceptions: redirect or render?

I m trying to standardize the way I handle exceptions in my web application (homemade framework) but I m not certain of the "correct" way to handle various situations. I m wondering if there is a ...

Cakephp is not redirecting properly when pages are cached

I am having some issues with a site that was working correctly until i implemented full page caching in CakePHP. I have followed the guidance in the Manual and have my $session->flash in a no-cache ...

热门标签