0

イントラネット用の Web アプリを作成しましたが、リンクがライブ サーバーのリンク ナビゲーションと一致しません。喜び。

私はあなたが考えていることを知っています:あなたのいまいましいアプリを正しく書いてください。了解しました。

mod_rewrite/htaccess のトリックで私が送信されるかどうか疑問に思っています..

/http://example/[admin/generic]/etc/etc2/this_stays_the_same.file

..に..

/http://example/[src/reports]/etc/etc2/this_stays_the_same.file

.. admin/generic ディレクトリに配置するときに、角括弧内のものを変換するだけです。

あるとすれば、それはニートでしょう。

ありがとう!

4

1 に答える 1

1

If you enter http://example/src/reports/... into the browser, you can use a simple Redirect

Redirect /src/reports /admin/generic

Update:

If you don't want to show the /admin/generic/... URL in the browser bar, you must do a rewrite instead of a redirect

RewriteEngine on
RewriteRule ^src/reports/(.*)$ /admin/generic/$1 [L]
于 2013-04-30T13:53:58.983 に答える