SharePoint 2010到2013 SharePoint迁移问题(SharePoint 2010 to 2013 SharePoint Migration issues)
我最近使用Visual Studio 2013将自定义WebPart模板解决方案(wsp)从SP2010迁移到SP2013。将程序集版本设置为15并通过.Net Framework 4.5进行编译。 deploymnet成功了。 但是有两个问题:1。当我使用刚部署的自定义模板创建网站时,页面显示杂乱的图标,附加屏幕截图。 此外,当尝试向网站添加权限时,网站的权限页面上会出现一大堆色彩斑斓的图标。
2.另一个问题是,一些CSS,特别是ms-WPxxxxxxxx(如WPTitle,WPHeader等)正在继承,可能来自corev4.css。 这就是View Source所显示的内容。 自定义CSS在主页面(CustomDefault.aspx)中使用“!important”标签定义,但这似乎没有任何用处。同样的解决方案在SP2010上完美运行。
怀疑大部分(1)与(2)有关,我可能是错的。
要解决(1),正如来自MSDN社区论坛的SP人员所建议的,我将默认母版页更改为Oslo.master ==>,这清除了混乱的图标,但CSS和Javascripts不起作用。 所以我不得不回复。 我也尝试将“../_layouts/ ..”更改为“../_layouts/15/ ..”,这没有任何区别。
MSDN社区主题: https : //social.msdn.microsoft.com/Forums/office/en-US/f9199e0c-972b-45b9-b8fb-772028bc22d9/cluttered-icons-in-sharepoint-2013-post-migration-from- SP2010?论坛= sharepointdevelopmentprevious#74fb3648-9776-4f68-82ba,b212102a1492
任何帮助将不胜感激。
I recently migrated custom WebPart template solution (wsp), which has custom list definition, from SP2010 to SP2013 using Visual Studio 2013. Set the Assembly Version to 15 and compiled over .Net Framework 4.5. The deploymnet was successful. But there are 2 problems: 1. When I created site using the custom template that was just deployed, the page displays cluttered icons, attached screen shots. Also when trying to add permission to the site, a whole bunch of colorful cluttered icons appear on the site's Permissions page.
2. The other issue is, some of the CSS, specifically the ms-WPxxxxxxxx (like WPTitle, WPHeader etc) are being inherited, probably from corev4.css. That’s what View Source shows. The custom CSS is defined in the main page (CustomDefault.aspx) with “!important” tag, but that didn’t seem to be of any use.The same solution was working perfect on SP2010.
Suspect mostly (1) is related to (2), I may be wrong.
To resolve (1), as advised by SP folks from MSDN Community forum, I changed the default master page to Oslo.master ==> that cleared the cluttering icons, but CSS and Javascripts werent working. So I had to revert. I also tried changing the "../_layouts/.." to "../_layouts/15/..", that didnt make any difference.
Any help will be appreciated.
原文:https://stackoverflow.com/questions/33152876
最满意答案
您可以在根目录中使用此规则.htaccess:
RewriteEngine On RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [L,R=301,NE]
You can use this rule in your root .htaccess:
RewriteEngine On RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [L,R=301,NE]
相关问答
更多-
如果管理员登录表单提交给http://,您可能需要更新admin / config.php常量HTTPS_SERVER ,并确保它在https中包含https://。 另外,请确保您的管理设置中的“使用SSL”设置为“是 ”。 If admin login form is submitting to http:// you probably need to update admin/config.php constant HTTPS_SERVER and make sure it has https:// ...
-
对于Apache,您可以使用mod_ssl强制使用SSLRequireSSL Directive SSL: 除非针对当前连接启用了HTTP over SSL(即HTTPS),否则此伪指令禁止访问。 这在启用SSL的虚拟主机或目录中非常方便,以防止发生应该受保护的内容的配置错误。 当此指令出现时,所有拒绝使用SSL的请求都被拒绝。 这不会重定向到https。 要重定向,请尝试以下与.htaccess文件中的mod_rewrite RewriteEngine On RewriteCond %{HTTPS} != ...
-
使用htaccess强制https不适用于使用htpasswd的完整URL(Using htaccess to force https not working for full urls with htpasswd)[2022-03-12]
我有类似的问题,这对我有用。 在httpd.conf中,在虚拟主机下,确保您同时拥有: ServerName domain.com ServerAlias www.domain.com 同时在VirtualHost *:80和VirtualHost *:443 I had similar problem, this is what worked for me. In your httpd.conf, under virtual hosts, make sure you have both: ServerNa ... -
要删除.html并强制https:// www ,您可以使用以下规则: RewriteEngine on #force https+www RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} !^www\. RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ RewriteRule (.*) https://www.%1/$1 [NE,L,R] #Remove .html RewriteCond %{THE_REQUE ...
-
.htaccess强制HTTPS(.htaccess forcing HTTPS)[2024-04-29]
只要向确切的域mydomain.com发出请求(这就是RewriteCond正在测试的内容),就会发生重定向。 它不适用于任何其他域,也不会检测HTTPS。 改为使用它: RewriteEngine On RewriteCond %{HTTP_HOST} ^(www.)?mydomain.com$ RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://www.mydomain.com/$1 [R=301,L] Your redirect happens w ... -
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} 这应该做到这一点。 RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} This should do it.
-
.htaccess强制HTTPS(.htaccess force HTTPS)[2023-03-27]
您可以在根目录中使用此规则.htaccess: RewriteEngine On RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [L,R=301,NE] You can use this rule in your root .htaccess: RewriteEngine On RewriteCond %{HTTP:X-Forwarded-Proto} !https Rew ... -
强制一个页面使用HTTPS,其他页面使用HTTP与.htaccess(force one page to use HTTPS and the others to use HTTP with .htaccess)[2023-09-02]
尝试使用此规则作为根目录中的第一条规则 .htaccess : RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^bookings/?$ https://%{HTTP_HOST}%{REQUEST_URI} [R=302,L,NE,NC] Try this rule as your very first rule in your root .htaccess: RewriteEngine On RewriteCond %{HTTPS} off ... -
我想这就是你想要的。 Options -Indexes RewriteEngine On RewriteCond %{HTTPS} !^on [OR] RewriteCond %{HTTP_HOST} ^example\.com [NC] RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L] 让我知道它是如何为你工作的。 I think this what you're after. Options -Indexes RewriteEngine O ...
-
使用.htaccess仅在1页和1目录上强制使用HTTPS?(Use .htaccess to force HTTPS only on 1 page & 1 directory?)[2022-08-14]
您可以使用以下rewriteRules: RewriteEngine on #force https for /login.php and /forum RewriteCond %{HTTPS} off RewriteRule ^(login\.php|forum/.*)$ https://%{HTTP_HOST}/$1 [NE,L,R] #redirect everything else to http if requested as https RewriteCond %{HTTPS} on Rew ...