質問

<IfModule mod_rewrite.c>
 RewriteEngine on
 RewriteBase /
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteRule ^(.*)$ index.php?q=$1 [L,QSA
.

フィードバックを探している

目標:Drupal 7サイトで「URLのクリーン」を有効にしようとしています(example.com/?q=userがexample.com/userに解決されます)。

公式のDrupal DocsとCommentsを介して、あまりにも時間があまりにもずっと費やしていないので、無効になるので、どんな提案も大いに感謝されています!

Drupal(/ admin / config / search / clean-urls)で "enable clean urls"をチェックし、設定オプションが保存されたことをall-clearに取得しました。だから私は実際にexample.com/userに移動することができて、それは実際にはexample.com /関数と同じコンテンツを表示します。ただし、example.com/userとしてURIで書き換えるためのexamic.com / ?suserの場合は、

関連する.htaccessコードは上に表示され、私のApache Confは正しく設定されているようです。

役に立ちましたか?

解決

Clean urls do indeed work but I kept getting errors until I found this This saved my sanity:

  • disable Overlay module
  • go to Clean URLS
  • change URL from: /?q=admin/config/search/clean-urls
  • to: /admin/config/search/clean-urls
  • Then the Check box should appear

他のヒント

I was searching for this issue, the solution that work for me was that:

  1. Left click on the wamp server icon and go to the apache.
  2. Here sub menu will be opened, go to the apache modules and enable the rewrite_module.
  3. now restart wamp server and then check your site.
  4. Enable clean url will now be active.

there should be a closing bracket on your last line "]". Perhaps this is the source of your frustration?

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top