我们网站的主页-http://urn1350.net/,我们想改为http://urn1350.net/elections成为主页。在drupal和apache服务器的后端,我有哪些URL重定向选项
如果您真的希望/elections成为的首页,而不仅仅是重定向,请转到/admin/config/system/site信息,您可以将默认的首页从"front"(或您现在拥有的任何内容)更改为。我建议先在dev/QA环境中尝试一下!
- 在http根目录中创建一个"elections"文件夹,并将Drupal站点移到该文件夹中
- 更改htaccess以将URL重写到文件夹
.htaces
# If your site is running in a VirtualDocumentRoot at http://example.com/,
# uncomment the following line:
RewriteBase /elections