php - 404 errer due to .htaccess file -


i have website. in website have 404 file not found errors per google webmaster, although files present. follow:

http://firstcovers.net/http//firstcovers.net/ http://firstcovers.net/category/1/http//firstcovers.net/ http://firstcovers.net/category/8/4/http//firstcovers.net/ http://firstcovers.net/category/17/2/http//firstcovers.net/ http://firstcovers.net/category/20/2/http//firstcovers.net/ http://firstcovers.net/facebook-cover/1317/privacy.php http://firstcovers.net/facebook-cover/1317/terms.php http://firstcovers.net/facebook-cover/1286/privacy.php http://firstcovers.net/facebook-cover/338/terms.php 

the structure of .htaccess file follow:

directoryindex index.html.var index.htm index.html index.shtml index.xhtml index.wml index.perl index.pl index.plx index.ppl index.cgi index.jsp index.js index.jp index.php4 index.php3 index.php index.phtml default.htm default.html home.htm index.php5 default.html default.htm home.html # use php5 single php.ini default #addhandler fcgid-script .php rewriteengine on   rewriterule ^latest.html /index.php?latest=y [l] rewriterule ^random.html /index.php?random=y [l] rewriterule ^showall.html /index.php?showall=y [l] rewriterule ^about.html /about.php [l] rewriterule ^userupload.html /userupload.php [l] rewriterule ^get-timeline.html /how.php [l]  rewriterule ^facebook-cover-([0-9]+).html /detailpage.php?cp=$1 [l] rewriterule ^facebook-cover/([0-9]+)/([^/]*).html /detailpage.php?cp=$1 [l] rewriterule ^preview/([0-9]+)/([^/]*).html /detailpage.php?preview=y&cp=$1 [l] rewriterule ^category/([^/]*)/([^/]*).html /index.php?cat=$1 [l] rewriterule ^category/([^/]*)/([^/]*)/([^/]*).html /index.php?cat=$1&page=$2 [l] rewriterule ^cover-([0-9]+).html  /image.php?picid=$1 [l] rewritebase / rewriterule ^css/(.*\.css) /combine.php?type=css&files=$1 rewriterule ^javascript/(.*\.js) /combine.php?type=javascript&files=$1  addoutputfilterbytype deflate text/html text/plain text/xml text/css <filesmatch "\\.(js|css|html|htm|php|xml)$"> # compress text, html, javascript, css, , xml addoutputfilterbytype deflate text/plain addoutputfilterbytype deflate text/html 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  # remove browser bugs browsermatch ^mozilla/4 gzip-only-text/html browsermatch ^mozilla/4\.0[678] no-gzip browsermatch \bmsie !no-gzip !gzip-only-text/html header append vary user-agent setoutputfilter deflate </filesmatch>  header set expires "thu, 15 apr 2030 20:00:00 gmt" <ifmodule mod_rewrite.c> rewriteengine on rewritecond %{http_referer}     !^$ rewritecond %{request_filename} -f rewritecond %{request_filename} .(gif|jpe?g?|png)$ [nc] rewritecond %{http_referer}     !^https?://([^.]+.)?firstcovers. [nc] rewriterule .(gif|jpe?g?|png)$ - [f,nc,l] </ifmodule> rewritecond %{http_referer} !^http://www.google.com/reader/view/.*$ [nc] # requires mod_expires enabled. <ifmodule mod_expires.c> # enable expirations expiresactive on  # default directive expiresdefault "access plus 1 month" # favicon expiresbytype image/x-icon "access plus 1 year" # images expiresbytype image/gif "access plus 1 month" expiresbytype image/png "access plus 1 month" expiresbytype image/jpg "access plus 1 month" expiresbytype image/jpeg "access plus 1 month" # css expiresbytype text/css "access 1 month" # javascript expiresbytype application/javascript "access plus 1 year" </ifmodule>  fileetag mtime size 

i have tried best change regular expression of .htaccess file. still doing mistake. unable trace mistake.

i request members of site me.

**thanks in advance.

your friend.

v k saw.**

for following 404s

http://firstcovers.net/facebook-cover/1317/privacy.php http://firstcovers.net/facebook-cover/1317/terms.php http://firstcovers.net/facebook-cover/1286/privacy.php http://firstcovers.net/facebook-cover/338/terms.php 

modify facebook-cover rule match on .php urls well.

rewriterule ^facebook-cover/([0-9]+)/([^/]*)\.(php|html)$ /detailpage.php?cp=$1 [l] 

the rest of 404 links

http://firstcovers.net/http//firstcovers.net/ http://firstcovers.net/category/1/http//firstcovers.net/ http://firstcovers.net/category/8/4/http//firstcovers.net/ http://firstcovers.net/category/17/2/http//firstcovers.net/ http://firstcovers.net/category/20/2/http//firstcovers.net/ 

aren't being generated .htaccess file. check php code incorrect generation of urls. somewhere appending http//firstcovers.net/ @ end. you're using custom tags (like <g:plusone>) , bug in 1 such tag library well.


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -