This section will cover the set up to let you create your own custom domain name for a URL instead of our default www.photosfromyourevent.com site. This can be useful if you want to have your own custom name, look, or brand displayed in the URL for your guests. Follow along below for set up details.
The steps are different depending on if you have an Apache or IIS server.
For an Apache server:
1.
copy the .htaccess file (attached) to the directory you want to use, or integrate the content if it already exists (not recommended, since it may cause conflicts with other elements of the site).
As an example, we have the lapp custom domain http://laphotoparty.com/events/. In this case we placed the .htaccess file in directory /public_html/events/ and the unique urls will look like this: http://laphotoparty.com/events/926/vc4jkx/ instead of http://www.photosfromyourevent.com/926/vc4jkx/
Note: Your Apache server must have the modules mod_proxy and mod_rewrite installed for this to work.
For IIS server:
1.
First, this requires modules URL Rewrite and Application Request Routing to be installed on IIS, so they need to be installed if not already available.
2.
Next, go to the link below, and follow steps 1-6 from section "CONFIGURE ARR AS A FORWARD PROXY":
- Finally, the following redirect rules should be added to system.webServer section of web.config:
<rewrite>
<rules>
<rule name="PPU Custom Domain Rewrite" stopProcessing="true">
<match url="^.*$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{URL}" pattern="^.*(/[0-9]+/[0-9a-z]{6,8}.*)$" ignoreCase="false" />
</conditions>
<action type="Rewrite" url="http://www.photosfromyourevent.com{C:1}" />
</rule>
</rules>
</rewrite>
You're all set! Congrats! Now you and your guests will see a unique custom URL when accessing their Photos.