我这里有一个htaccess代码。除了主页外,所有页面都可以使用重定向。我在conf文件中也做了更改,但没有用,请帮忙。它说当我点击主页链接时找不到对象。
DirectoryIndex index.php
RewriteEngine on
AddDefaultCharset UTF-8
RewriteCond %{HTTP} =on
RewriteRule ^home/?$ index.php [NC,L,QSA]
RewriteRule ^about-us/?$ about.php [NC,L,QSA]
RewriteRule ^quick-service/?$ quick_service.php [NC,L,QSA]
RewriteRule ^road-side/?$ road_side.php [NC,L,QSA]
RewriteRule ^video-visualization/?$ video_visual.php [NC,L,QSA]
RewriteRule ^distance-approach/?$ distance_approach.php [NC,L,QSA]
RewriteRule ^pickup-drop/?$ pickup_drop.php [NC,L,QSA]
RewriteRule ^checking-status/?$ checking_status.php [NC,L,QSA]
RewriteRule ^genuine-parts/?$ genuine_parts.php [NC,L,QSA]
RewriteRule ^book-vehicle/?$ book_vehicle.php [NC,L,QSA]
RewriteRule ^Sign-In/?$ login.php [NC,L,QSA]
RewriteRule ^Register/?$ register.php [NC,L,QSA]
RewriteRule ^purchase-parts/?$ purchase.php [NC,L,QSA]
RewriteRule ^contact/?$ contact.php [NC,L,QSA]
RewriteRule ^service-centers/?$ service_centers.php [NC,L,QSA]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php