您现在的位置是:主页 > news > 成立一个做网站的公司/如何推广seo

成立一个做网站的公司/如何推广seo

admin2025/6/17 12:44:46news

简介成立一个做网站的公司,如何推广seo,网站seo优化技术入门,品质好的深圳装修1.确认此服务器apache已经配置过证书可以用https访问到 2.确认/etc/apache2/ports.conf 下有 Listen 80Listen 443&#xff08;此条&#xff09; 3.配置虚礼主机定将域名位到指定文件夹 <VirtualHost *:80>ServerAdmin webmasterlocalhostDocumentRoot /var/www/html/lar…

成立一个做网站的公司,如何推广seo,网站seo优化技术入门,品质好的深圳装修1.确认此服务器apache已经配置过证书可以用https访问到 2.确认/etc/apache2/ports.conf 下有 Listen 80Listen 443&#xff08;此条&#xff09; 3.配置虚礼主机定将域名位到指定文件夹 <VirtualHost *:80>ServerAdmin webmasterlocalhostDocumentRoot /var/www/html/lar…

1.确认此服务器apache已经配置过证书可以用https访问到

2.确认/etc/apache2/ports.conf 下有

Listen 80
Listen 443(此条)

3.配置虚礼主机定将域名位到指定文件夹

<VirtualHost *:80>ServerAdmin webmaster@localhostDocumentRoot /var/www/html/laravel/publicServerName www.uipxw.comErrorLog ${APACHE_LOG_DIR}/error.logCustomLog ${APACHE_LOG_DIR}/access.log combined</VirtualHost><VirtualHost *:443>ServerAdmin webmaster@localhostDocumentRoot /var/www/html/laravel/publicServerName www.uipxw.comErrorLog ${APACHE_LOG_DIR}/error.logCustomLog ${APACHE_LOG_DIR}/access.log combined</VirtualHost>

  两条记录相同监听端口不同

4.无框架在需要转为https的入口新建。.htaccess文件

写入

<IfModule mod_rewrite.c>RewriteEngine OnRewriteCond %{HTTPS} offRewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]</IfModule>

5.有框架在需要转为https的入口新建。.htaccess文件

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]# BEGIN WordPress
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

  如果不强制转为https框架的(.htaccess文件的内容应该是)

<IfModule mod_rewrite.c>Options +FollowSymlinks -MultiviewsRewriteEngine OnRewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
</IfModule>

 

转载于:https://www.cnblogs.com/qqlong/p/8430248.html