지금은 아주 이상한 문제에 직면하고 있습니다. 단일 도메인에서 wordpress 및 oscommerce 설치가 있습니다. 나는 루트에 wordpress를두고/store/folder에 oscommerce를 놓았다. 한 가지를 제외한 모든 것이 제대로 작동하고 있습니다. oscommerce의 서버 헤더는 페이지가 올바르게 표시 되더라도 404 오류를 발생시킵니다. 결과적으로 Googlebot이 이러한 페이지를 전혀 색인하지 않게됩니다. 누구든지이 문제를 해결할 수 있도록 도와 줄 수 있습니까? 지금 어떻게해야합니까?htaccess 문제 : 페이지가 올바르게 표시되지만 머리글이 404 번 표시됩니다.
Root httaccess is
RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html
RewriteEngine On
RewriteCond %{HTTP_HOST} ^outdoorwatersolutions.com [NC]
RewriteRule ^(.*)$ http://www.outdoorwatersolutions.com/$1 [L,R=301]
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
와 osCommerce에의 httaccess이는 osCommerce의 구성 오류처럼 보이는
Options +SymLinksIfOwnerMatch
<IfModule mod_rewrite.c>
RewriteEngine On
# RewriteBase instructions
# Change RewriteBase dependent on how your shop is accessed as below.
# http://www.mysite.com = RewriteBase/
# http://www.mysite.com/catalog/ = RewriteBase /catalog/
# http://www.mysite.com/catalog/shop/ = RewriteBase /catalog/shop/
# Change RewriteBase using the instructions above
RewriteBase /store/
RewriteRule ^([a-z0-9/-]+)-p-([0-9]+).html$ product_info.php [NC,L,QSA]
RewriteRule ^([a-z0-9/-]+)-c-([0-9_]+).html$ index.php [NC,L,QSA]
RewriteRule ^([a-z0-9/-]+)-m-([0-9]+).html$ index.php [NC,L,QSA]
RewriteRule ^([a-z0-9/-]+)-pi-([0-9]+).html$ popup_image.php [NC,L,QSA]
RewriteRule ^([a-z0-9/-]+)-pr-([0-9]+).html$ product_reviews.php [NC,L,QSA]
RewriteRule ^([a-z0-9/-]+)-pri-([0-9]+).html$ product_reviews_info.php [NC,L,QSA]
# Articles contribution
RewriteRule ^([a-z0-9/-]+)-t-([0-9_]+).html$ articles.php [NC,L,QSA]
RewriteRule ^([a-z0-9/-]+)-au-([0-9]+).html$ articles.php [NC,L,QSA]
RewriteRule ^([a-z0-9/-]+)-a-([0-9]+).html$ article_info.php [NC,L,QSA]
# Information pages
RewriteRule ^([a-z0-9/-]+)-i-([0-9]+).html$ information.php [NC,L,QSA]
# Links contribution
RewriteRule ^([a-z0-9/-]+)-links-([0-9_]+).html$ links.php [NC,L,QSA]
# Newsdesk contribution
RewriteRule ^([a-z0-9/-]+)-n-([0-9]+).html$ newsdesk_info.php [NC,L,QSA]
RewriteRule ^([a-z0-9/-]+)-nc-([0-9]+).html$ newsdesk_index.php [NC,L,QSA]
RewriteRule ^([a-z0-9/-]+)-nri-([0-9]+).html$ newsdesk_reviews_info.php [NC,L,QSA]
RewriteRule ^([a-z0-9/-]+)-nra-([0-9]+).html$ newsdesk_reviews_article.php [NC,L,QSA]
</IfModule>
나는 당신이 당신의 .htaccess를 표시하지 않는 한 많은 도움을받을 수있을 거라 생각하지 않습니다 (제품이 매진되는 경우 원인은 ... 나중에 돌아올 수도 있지만 그 사라 오기 '신호됩니다) 파일 또는 httpd.conf (문제가있는 경우) . – gpojd
웹 서버 구성에 대한 도움을 받으려면 serverfault.com을 사용해보십시오. – Crontab
.htaccess 문제가 아닌 것 같습니다. 코드가 어떤 이유로 404 헤더를 출력하지 않을 것이라고 확신합니까? – gpojd