在我正在工作的网站上,在localhost上所有链接都正常工作。但是在主机上传文件后,网站仍然停留在主页上。这是我的htaccess:
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^produse/?$ index.php?page=produse
RewriteRule ^product/([^/]*)?$ index.php?page=product&id=$1
RewriteRule ^product_type/([^/]*)?$ index.php?page=product_type&id=$1
RewriteRule ^mind/?$ index.php?page=mind
RewriteRule ^register/?$ index.php?page=register
RewriteRule ^register/([^/]*)?$ index.php?page=register&err=$1
RewriteRule ^furnizori/([^/]*)?$ index.php?page=furnizori&id=$1
RewriteRule ^contact/?$ index.php?page=contact
RewriteRule ^contact/([^/]*)?$ index.php?page=contact&err=$1
RewriteRule ^servicii/?$ index.php?page=servicii
RewriteRule ^login/?$ index.php?page=login
RewriteRule ^login/([^/]*)?$ index.php?page=login&err=$1
RewriteRule ^logout/?$ logout.php
RewriteRule ^desprenoi/?$ index.php?page=desprenoi
RewriteRule ^show_submenu_products/?$ index.php?page=show_submenu_products