.htaccess - Xampp 3.2.1 local copy of site 404ing on everypage apart from homepage -


i have copied site down live (works fine) on local machine. locally can view homepage of site, if try , visit page keep getting 404's.

here vhosts setup:

<virtualhost *:80>     documentroot "c:\users\sony\documents\websites\website.com"     servername local.website.com     <directory "c:\users\sony\documents\websites\website.com">     order allow,deny     allow     require granted     </directory> </virtualhost> 

anyone have idea why happening? seems happen latest version of xampp , on urls have been rewritten.

in case interested here htaccess file:

errordocument 404 /404.php   rewriteengine on rewritebase /  # remove www host rewritecond %{http_host} ^www\.(.+) rewritecond %{https}s/%1 ^(on(s)|offs)/(.+) rewriterule ^ http%2://%3%{request_uri} [l,r=301]  # remove trailing slash rewriterule ^(.*)\/(\?.*)?$ $1$2 [r=301,l]  # don't match real existing files css, scripts, images aren't rewritten rewritecond %{request_filename} !-f  rewritecond %{request_filename} !-d  # match first 2 groups before / , send them query string rewriterule ^([+a-za-z0-9-\.]+)?$ deals.php?country_code=$1 [l]  rewritecond %{request_filename} !-f  rewritecond %{request_filename} !-d rewriterule ^([+a-za-z0-9-\.]+)/([+a-za-z0-9-\.]+)?$ deals.php?country_code=$1&zone_id=$2 [l] 

any appreciated


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -