Sharepoint 2013 /ScriptResource.axd?d= and /WebResource.axd? 404 not found - sharepoint

I have a Sharepoint 2013 Farm with name
dev22 and I have created a site collection with this url http://dev22/test/site1
And I have added a rule on TMG to redirect the url http://dev22/test/site1 to https://mydomaine/test/site1
But the problem I get the error 404 for /ScriptResource.axd?d= and /WebResource.axd?
because he search the resources on my root domaine
https://mydomaine.com/ScriptResource.axd?d=
instead
https://mydomaine.com/test/site1/ScriptResource.axd?d=
any help please?

Seems like you have link translation on. You can configure a rule to replace part of the url.
go to your firewall policies.
right click on the firewall policy.
click properties.
navigate to the link translation tab.
click on configure
Then you should see this dialog
click add
you will want to replace '/ScriptResource.axd' with '/test/site1/ScriptResource.axd'

Thank you for your answer but if I add this rules on the firewall, I will get the same error for root website.
because I have a SPFarm on http://mydomain.com/
and other SPfarm on http://dev22/test/site1
and i have done redirection with the firewall https://mydomain.com/test/site1 to dev22 sitecollection

Related

Configure ISAPI redirector: worker propreties for IIS and Liferay

we have fronted Liferay tomcat server with IIS , and we used ISAPI tomcat redirector for that ,everything works just fine.
the problem is that We need to map a specific Domain name to a specific URL on Liferay:
workers.properties :
worker.mydomain_com.port=8014
worker.mydomain_com.host=127.0.0.1
worker.mydomain_com=ajp13
uriworkermap.properties
/mydomain.com/=mydomain_com
/www.mydomain.com=mydomain_com
/www.mydomain.com/*=mydomain_com
This configuration will map www.mydomain.com to localhost:xxxx .
what i want is how to configure the worker mydomain_com so it can be mapped to localhost:xxxx/web/organiation. I searched for worker.mydomain.options but there is no configuration for the uri, is there any way to do ?
Thanks
As your configuration in IIS for mapping to www.mydomain.com is working fine. Its better to keep it like that and enable friendly URL for site in liferay so that you don't really need /web/organiation
Here are the steps to do in liferay 6.1
Login to Liferay as administration.
Go to Control Panel
Select your site and then click on "Site Settings".
Click on "Site URL" in right side.
Under "Virtual Hosts", you should see a text box named "Public Pages"
Enter www.mydomain.com and save.
Then liferay automatically redirect requests coming to it from www.mydomain.com to public pages of this site.
If you are using different liferay version, steps may be little different. But it still provides an option to set domain name for site.

IIS7.5 default.aspx redirects to root, but only with www

I noticed that when entering my site in the browser as "www.mysite.com", that's exactly the way it stays, but when entering "mysite.com", it redirects to "www.mysite.com/default.aspx". Can anyone explain to me
How come the "www" doesn't show the default.aspx, although I haven't set up any url rewrites, and
how come the "www" behavior is different from the non-"www" behavior.
My goal is that the non-"www" should also not show the "default.aspx".
Thanks in advance!
Open IIS manager, here is link How to: Open IIS Manager
Next on left panel select you web site and double-click on "Default Document" icon
Here you can remove all default pages and add one you have desired.
You actualy don't have to have any default page.
Hope this helps!

How to redirect root web site to site collection

I'm having quite a hard time figuring out this problem and I need your help. Here's the scenario:
I have a sharepoint 2010 web application on my port 80. This has 2 site collections, the root, and the /sites/official. My problem is: The root site is empty, but in the future it will be my something (I don't know what yet), but my other site collection is ready to go and I already have an Internet address for it.
What I want to do is configure everything in way that I can type http://contoso.com and get as response my sub-site (yes, its a kind of redirect)...
how can I do it? What and where should I configure it?
add content editor webpart on your root site collection and put this javascript in that webpart
<script type="text/javascript">
window.location = "http://contoso.com/sites/official"
</script>
Open IIS manager
Right click on your SharePoint website -> Properties
Go to tab Home Directory
Choose A redirection to a URL
fill the URL for redirection. for example: http://contoso.com/sites/official
Notes:
Make sure to check A Directory below URL entered to avoid redirect loop
Link to another thread might interest the reader - immediate redirect page in sharepoint
Screenshot:
Add alternate access mapping for the sub-site collection from the central administration.
Central Administration > Application Management > Web Applications > Configure alternate access mappings

Create user friendly alias for a sharepoint site

I have a test Sharepoint server running on a Windows 7 machine. The url is http://liu-t500-01 and i want to create a user friendly alias http://temp for it. i have added
127.0.0.1 temp
to my hosts file (an A/host entry) and i have also created an alternate access mapping in Central Administration
http://liu-t500-01 Default http://liu-t500-01
http://temp Intranet http://temp
However when i try http://temp in the browser the sharepoint site does not come up. This is probably a simple problem but has me scratching my head...what did i do wrong?
Changing the IIS binding only will cause errors. You need to modify the alternate access mappings in SharePoint. There are tons of good articles our there that tell what to do in detail.
Here is just one: http://technet.microsoft.com/en-us/sharepoint/Video/ff679917
Try adding a host header in IIS
In IIS click on your site
choose the Bindings action
Click Add
In the Host Name field enter "temp"
click OK

where is peopleresults.aspx page in sharepoint search?

I am define my contact list, and the made it serachable trough SSP-> serach settings. Now, I add the people search Webpart which is out of box web part. ok? but when I go to search any keyword it redirect me on peopleresults.aspx page. with message
"404 NOT FOUND" Or some times before it was showing me "page cannot find" error. So what is the reason? How to configure "peopleresults.aspx" with People Search box? please guide me its too urgent.
you need to create my site and under configuration of userprofile -> setup my site enter my site host location
Please refer following location
http://social.technet.microsoft.com/Forums/sharepoint/en-US/bf19ece2-6846-47d1-91fe-69162417d788/people-search-not-working-peopleresultsaspx-page-does-not-exist-and-people-search-webparts-missing?forum=sharepointadminprevious

Resources