我有一个网站和一个子域名。
主网站托管在server A中,子域在server B中。
main website = server A
sub domain = server B
当我有高流量时,我会将我的主网站重定向到我的子域名。
http://main-website.com redirects to sub.main-website.com
and
http://main-website.com/post1 redirects to sub.main-website.com/post1
我在主网站服务器上使用htaccess进行重定向.
我将为服务器A(主网站服务器,包含重定
我有两个域名。1)主2)子域。.htaccess文件中的这段代码给我带来了问题。
# Pass all requests not referring directly to files in the filesystem to
# index.php. Clean URLs are handled in drupal_environment_initialize().
# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_FILENAME} !-d
# RewriteCond %{REQUEST_URI} !=/favico
我有一个问题,我有一个管理子域名设置在路由如下:
constraints :subdomain => 'admin' do
scope :module => "admin" do
match 'articles/:id/', :to => 'articles#show'
resources :articles, :events do
collection do
post :update_attribute_on_the_spot
end
end
root :to
我想在Wordpress上拉出一个存档/分类页面的内容(实际上是整个页面),以显示在一个子域地址中。
这是我想看到的,这是这个页面的内容:这是示例子域名,我想要上一次访问appear:catredi.intorremolinos.co.uk的地方这里是主domain:intorremolinos.co.uk
现在,所有显示的都是与主页完全相同的东西。
我已经有了一些东西,尽管很明显它不起作用。这是我使用的代码,它位于子域文件夹上的一个index.php文件中。
<?php
/**
* Front to the WordPress application. This file doesn&