さて、質問は2点、
まず、私は htaccess を初めて使用し、Google SEO 用の適切な Rewrited URL を作成する方法を理解するのに多くの問題を抱えているため、これを作成しました。
Options +FollowSymlinks
RewriteEngine on
### [... other language ...]
### English product URL
# Product page : (url/en/products/items-1.html)
RewriteRule ^([a-z]+)/[P-p]roducts/item-([0-9]+)\.html$ produits.php?lang=$1&art=$2 [L,NC]
# List of categories of a division (url/en/products/items-1-1.html)
RewriteRule ^([a-z]+)/[P-p]roducts/item-([0-9]+)-([0-9]+)\.html$ produits.php?lang=$1&idc=$2&catd=$3 [L,NC]
# List of subcategories of a categorie (url/en/products/items-1-1-1.html)
RewriteRule ^([a-z]+)/[P-p]roducts/item-([0-9]+)-([0-9]+)-([0-9]+)\.html$ produits.php?lang=$1&idc=$2&catd=$3&catt=$4 [L,NC]
# List of sub-sub-categories of a sub-categorie (url/en/products/items-1-1-1-1.html)
RewriteRule ^([a-z]+)/[P-p]roducts/item-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html$ produits.php?lang=$1&idc=$2&catd=$3&catt=$4&catq=$5 [L,NC]
### Mod Rewrite to make url more friendly EN
RewriteRule ^([a-z]+)/[B-b]ecome-a-[C-c]lient client.php?lang=$1 [L,NC]
RewriteRule ^([a-z]+)/[C-c]ontact-[U-u]s contact.php?lang=$1 [L,NC]
RewriteRule ^([a-z]+)/[O-o]ops erreur.php?lang=$1 [L,NC]
RewriteRule ^([a-z]+)/[I-i]ndustrial-[D-d]ivision industriel.php?lang=$1 [L,NC]
RewriteRule ^([a-z]+)/[C-c]art panier.php?lang=$1 [L,NC]
RewriteRule ^([a-z]+)/[S-s]earch recherche.php?lang=$1 [L,NC]
RewriteRule ^([a-z]+)/[H-h]ealt-[D-d]ivision sanitaire.php?lang=$1 [L,NC]
RewriteRule ^([a-z]+)/[H-h]ome index.php?lang=$1 [L,NC]
### Compression Mod
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/php
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
## [... errors page ...]
今の問題は、開発目的で何かに到達したとしても、それができないことです
例 : Web サイト全体を work という名前のフォルダーにコピーし、ドメインのルートに配置して、URL を次のようにします。
www.website-url.com/work
この時点ですべて問題ありません。この部分にアクセスできますが、products.php にアクセスする場合は、それを行うことができます... www.website-url.com/work のように書き換えるとアクセスできないことがわかっています。 /products/items-1.html ですが、直接アクセスできるはずではありませんか?
私の 2 番目の質問は、jQuery で多くの javascipt を使用しているため、サーバーの圧縮を使用してクライアントの Web サイトの読み込みを高速化することです。オンラインツールで確認しましたが、圧縮テストに合格したことはありません。
ご協力いただきありがとうございます !