Rewrite URL for IIS - iis

I work for an organization which has its intranet on Joomla 3.6.4 and hosted on IIS.
The company plans to revamp the main menu of the site and hence all the old url's need to be redirected to the new ones.
I tried adding Rewrite Maps and rules via the IIS Manager but no luck.
Any tips or good documentation I can refer to? any help would be greatly received.
Thanks,
Pooja

Related

Single Orchard CMS site for multiple websites or installation for each

Since orchard is database driven, It seems like one orchard installation could be hosted in IIS with multiple domain bindings and have each domain pull it's own content. But it doesn't appear this is the case. I have to create new IIS websites for each orchard installation. It seems very redundant to have all these websites with the exact same underlying content.
How could I setup one Orchard website in IIS and have many domains that point to it have unique content and themes?
Forgive my ignorance with this if it's blatant, but I just got done with a week long adventuring evaluating WordPress and running into the same issue. So my fuse is a little short with Orchard.
Looks like Orchard sites can be set up in a multi-tenant configuration:
http://docs.orchardproject.net/Documentation/Setting-up-a-multi-tenant-orchard-site
Even without using multiple Orchard tenants the Rewrite Rules module can be used to redirect different domains or subdomains to different addresses inside your site.
In the site configuration I was able to add a comma-separated list of hosts (since I had multi-tenancy enabled I did this in Tenancy / Default / Host).
After installing the Rewrite Rules module I added the rule
RewriteCond %{HTTP_HOST} ^((www\.)?shooting\-?coach\.de)$ [NC]
RewriteRule ^/+.*$ http://harald-muehlhoff.de/fotograf/ [R=302,L]
to redirect all traffic from [www.]shooting[-]coach.de[/something] to harald-muehlhoff.de/fotograf/ ignoring the initial request uri. Obviously your requirements may differ but hopefully this example will get you started!

Redirect SharePoint 2007 Site Collection URL

Hope you could help!
I would like advice on the best option to redirect the top level site collection URL to an alternative address already setup in Alternate Access Mapping.
Using the CEWP to redirect via html/script
IIS 6.0
Onve the web application was setup/installed, a few months later we decided to change the URL (Business requirement), therefore a redirect is advised without deleting/over writing the exisiting content as this must stay intact.
Please help how I can acheive this, For Example, primary URL is http://server.company.org and would like to redirect to http://name.company.org
Our setup is MOSS 2007, Windows Server 2003 SP2 64Bit, IIS 6.0
Here's some great information from a Microsoft MVP that describes in detail your options for URL redirects in Office SharePoint 2007. This blog post has helped me several times in the past since I don't setup redirect very often. (I try to use redirects as little as possible)

site - mandatory redirection

My company was divided in two divisions so the sites which were running like http://app.mycompany.com
now they should run as,
http://app.mycompany-divisionone.com
How I should proceed to redirect the requests to the right web address, because many users have his bookmarks using the old domain.
Also there are bookmarks like http://app.mycompany.com/myform.asp
All this is running into a intranet so I could change IIS, DNS, etc..
Using IIS 6 and Windows 2003.
Thanks.
Microsoft has a page on this -
Redirecting Web Sites in IIS 6.0
Hope it helps.

Trying to set up Orchard Multi-Tenancy on IIS Server

I am very new to Orchard, and am having a most difficult time setting up IIS bindings. I am not proficient at IIS, and am new to web development in general.
Say I have domain1.com which is the main Orchard site (landlord). I properly set up domain2.com in the Multi-Tenant module. My DNS records on the server work properly if I have domain1.com and domain2.com as separate sites (i.e., I can type in domain1.com and see the Orchard landlord site, I can type domain2.com and see the default page used by my control panel).
I guess I am just having a hard time binding. I fiddled around with DNS settings using my servers control panel - no luck. I then tried using IIS to "bind" domain2.com to domain1.com but am pretty sure I have made a mess of it. :)
I've searched around for an answer, but nothing seems to work or otherwise I am unable to fully grasp the concept. The Orchard documentation doesn't really deal with IIS bindings (it deals with using the development machine to host the multi-tenant sites, but I am dealing with a live server - all my "development", such as it is, is done).
Any suggestions? Thanks.
To get bindings working for multi-tennancy working you can do one of two things.
Set a catch all domain binding:
Create a site in IIS with the binding set to all unassigned IP addresses and no host name. Any domain pointing at the IP of your server will point at this site and Orchard multi-tennancy will decide which of your Orchard sites to point it at. Only one IIS site can have this setting or they will clash.
Add multiple domain bindings: In ISS create a site for bound to domain1.com, then under edit site click bindings and add a new binding for domain2.com.

URL Rewrite Sharepoint Search issues

I am developing a SharePoint Portal in Microsoft Sharepoint 2010.
The fact is that I activated URL Rewrite module on Windows Server 2008 R2 IIS 7.
I am rewriting urls like this:
English/News/3/Title+Of+The+News into
English/News.aspx?id=3&title=Title+Of+The+News
All works well, the problem is that when I activate Search features, its seems that SP is not indexing the rewritten urls.
It only indexes one time the URL : English/News.aspx, but will not index the rewritten URLs such as (that targets the same page):
English/News/3/Title+Of+The+News
English/News/4/News2
All the rewritten links are available from the home page and many other pagesof my site, so I do not understand why SP is not indexing that links.
Any ideas?
Thanks in advance!
ok, I found it out.
I needed to add a Crawl Rule that index complex urls in Sharepoint.
Can be found here:
http://www.venkat.org/2008/07/how-to-index-complex-url-in-moss.html

Resources