有问题更改默认网址中字preSS根 [英] Having problems changing the default URL to root in wordpress

查看:189
本文介绍了有问题更改默认网址中字preSS根的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个服务器上汇出至托管和我的EC2实例安装Word preSS。 我面临两个问题吧:

  1. 我能够使用访问我的话preSS网站的http://< my_domain> /字preSS 但我想它直接访问访问的http://< my_domain> 。我知道有列出你的网站,但他们没有工作对我来说很多方面。一件事,我注意到的是,我可以用字preSS的常规设置字preSS地址和网站地址字段实现相同的,但这些领域都在我的字preSS应用程序,我变灰我无法改变这些字段,可以请你告诉我,为什么他们是灰色的,我怎么能激活他们?

  2. 我试图通过使用<一个给出的提示,以解决我的问题href="http://wiki.bitnami.org/Applications/BitNami_Word$p$pss_Stack#How_to_change_the_Word$p$pss_domain_name.3f" rel="nofollow">http://wiki.bitnami.org/Applications/BitNami_Word$p$pss_Stack#How_to_change_the_Word$p$pss_domain_name.3f现在,出于某种原因,我不能访问我的网站在所有。我已经采取了备份与我的htaccess和conf文件,当我的服务器成为无法访问插手之前,我只是恢复的备份和更新我的网页。但我不能够解决问题,我无法用我的仪表板。

解决方案

标准的过程是运行以下命令:

  $须藤的/ opt /汇出/应用程序/字preSS / updateip --appurl /
 

此命令更改以下选项:

检查/opt/bitnami/apps/word$p$pss/conf/word$p$pss.conf文件。它应该与此类似:

 #应用程序链接移动到根
的DocumentRoot/选择/汇出/应用程序/字preSS / htdocs目录
#Alias​​ /字preSS //选择/汇出/应用程序/字preSS / htdocs中/
#Alias​​ /字preSS/选择/汇出/应用程序/字preSS / htdocs目录

&LT;目录/选择/汇出/应用程序/字preSS / htdocs目录&GT;
    选项​​指标多视图+的FollowSymLinks
    设置AllowOverride所有
    订购允许,拒绝
    所有允许
    RewriteEngine叙述上
    #RewriteBase /字preSS /
    重写规则^指数\ .PHP $  -  [L]
    的RewriteCond%{} REQUEST_FILENAME!-f
    的RewriteCond%{} REQUEST_FILENAME!-d
    重写规则。的index.php [L]
&LT; /目录&GT;
 

然后清除浏览器缓存并尝试重新访问您的网址。

如果您想要配置的话语preSS管理面板灰色的出选项,你可以指定/opt/bitnami/apps/word$p$pss/htdocs/wp-config.php您的域名。替换$ _ SERVER ['HTTP_HOST']用自己的域名。

 定义(WP_SITEURL','HTTP://'。$ _ SERVER ['HTTP_HOST']'/');
定义(WP_HOME,HTTP://$ _ SERVER ['HTTP_HOST']'/');
 

我希望它能帮助。

I created a server on Bitnami hosting and installed Wordpress on my EC2 instance. I am facing two issues now:

  1. I am able to access my wordpress website using http://<my_domain>/wordpress but I want it to be accessed directly by visiting http://<my_domain>. I know there are many ways that are listed on your website but none of them worked for me. one thing that I noticed is that I can achieve the same using wordpress address and Site address fields in the general settings of wordpress, but those fields are greyed out in my wordpress application and I am unable to change those fields, can you please tell me why they are greyed out and how I can activate them?

  2. I tried to solve my problem by using the tips given in http://wiki.bitnami.org/Applications/BitNami_Wordpress_Stack#How_to_change_the_WordPress_domain_name.3f Now, for some reason, I am not able to access my site at all. I had taken a backup before meddling with my htaccess and conf files, when my server became unreachable, i simply restored the backup and refreshed my page. But I am not able to solve the problem and I am unable to use my dashboard.

解决方案

The standard process is to run the following command:

$ sudo /opt/bitnami/apps/wordpress/updateip --appurl /

This command changes the following options:

Check the /opt/bitnami/apps/wordpress/conf/wordpress.conf file. It should be similar to this:

# App url moved to root
DocumentRoot "/opt/bitnami/apps/wordpress/htdocs"
#Alias /wordpress/ "/opt/bitnami/apps/wordpress/htdocs/"
#Alias /wordpress "/opt/bitnami/apps/wordpress/htdocs"

<Directory "/opt/bitnami/apps/wordpress/htdocs">
    Options Indexes MultiViews +FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
    RewriteEngine On
    #RewriteBase /wordpress/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . index.php [L]
</Directory>

Then clear your browser cache and try to access again to your URL.

If you want to configure the gray out options in the WordPress admin panel, you can specify your domain name at /opt/bitnami/apps/wordpress/htdocs/wp-config.php. Replace $_SERVER['HTTP_HOST'] with your own domain name.

define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] . '/');
define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST'] . '/');

I hope it helps.

这篇关于有问题更改默认网址中字preSS根的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆