Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
URL www.sample.com/state-abbriviation(2 文字)/category/page.htm の構造は次のとおりです。
次の URL www.sample.com/state-name/page/id にリダイレクトする必要があります。
私の質問は、州の略語(nm、tx)を完全な州名(newmexico、texas)に動的に置き換えるにはどうすればよいですか?
これはhtaccessとはちょっと複雑です。htaccessはどのようにしてページとIDを認識しますか?
すべてをindex.phpにリダイレクトし、phpに処理させてください...これもちょっと複雑になります:p