WP 다중 사이트를 루트 디렉토리에 설치했습니다. 현재 Invision Power의 IP Content를 사용하여이 디렉토리에서 실행중인 사이트가 있지만 wordpress를 수용하기 위해 index.php 파일의 이름을 변경했습니다./포럼에서 IP Board를 운영하고 있습니다.Wordpress 홈페이지가 다른 CMS 홈 페이지로 리디렉션 됨
나는 wordpress 페이지 (domain.tld/sample-page /)를 만들었지 만 그것을 탐색 할 때 찾을 수 없습니다 (방문 페이지는 WP가 아니지만 "우리는 페이지를 찾을 수 없습니다 당신은 찾고 있었다.) 내 사이트가 WP 전에 IP 컨텐트 데이터베이스를보고있는 것처럼 보이기 때문에/sample-page /가 WP에 존재하지 않기 때문에 자신의 데이터베이스에서 페이지/디렉토리를 찾을 수 없다. 데이터베이스.
나는 (내 WP의 블로그를 가지고해야하는) 내가 www.domain.com에서 내 집 IP 컨텐츠 페이지로 리디렉션.
을 내가 어떻게 할 수 domain.com/index.php에 갈 때 WP 데이터베이스에서 이런 식으로 보입니까?
내 htaccess로 파일 :
# Loads home.php first (ip.content). Wordpress is index.php
DirectoryIndex home.php index.php index.html maintenance.html
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteBase/
RewriteCond %{REQUEST_FILENAME} !.*\.(jpeg|jpg|gif|png|ico)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /home.php [L]
</IfModule>
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# Multisite
RewriteEngine On
RewriteBase/
RewriteRule ^index\.php$ - [L]
# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule^- [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
# Multisite
# END WordPress
답장을 보내 주셔서 감사합니다. IP 콘텐츠에 대한 첫 번째 조건 집합이 필요합니다. 나는 어떤 종류의 조건을 덧붙이려고 노력했지만 많은 것을 생각해 내지 못했습니다. 나는 내 상황과 비슷한이 스레드를 찾았습니다. http://stackoverflow.com/questions/3434610/problems-with-wordpress-mod-rewrite-rules-when-requesting-existing-files?rq=1 어떤 종류의 조건이 필요한지 생각해? – myladeybugg
WordPress에 제공 할 특정 페이지가있는 경우 첫 번째 다시 쓰기 규칙을 적용해서는 안되는 조건에 이름을 지정할 수 있습니다. 아파치 다시 쓰기 문서는 http://httpd.apache.org/docs/current/mod/mod_rewrite.html입니다. –
'RewriteEngine On을 시도했습니다. RewriteCond % {REQUEST_URI}! ^. */(tools | learn | _) ($ | /.*$) [NC] RewriteRule^(. *) $ /index.php? p = $ 1'하지만 여전히 IP 콘텐츠를보고 페이지를 찾을 수 없습니다. 만약 내가 URL을 domain.com/tools 또는 배우거나 _ 다음 index.php 봐 코드를 올바르게 읽고 있어요? – myladeybugg