{"id":42,"date":"2009-07-09T01:16:25","date_gmt":"2009-07-09T01:16:25","guid":{"rendered":"http:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/?p=42"},"modified":"2016-12-27T03:47:13","modified_gmt":"2016-12-27T03:47:13","slug":"how-to-changecustomize-the-url-of-the-affiliate-view","status":"publish","type":"post","link":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/how-to-changecustomize-the-url-of-the-affiliate-view-42","title":{"rendered":"How to Change\/Customize the URL of the affiliate view"},"content":{"rendered":"<div class=\"custom_yellow_box\">\n<p><strong><span style=\"color: #008000;\">Note: An easier way to\u00a0achieve\u00a0the same result is to use the 2nd option from the following documentation:<\/span><\/strong><\/p>\n<ul>\n<li><strong><a href=\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/setting-up-the-affiliate-viewarea-315\">Setup an OnPage Affiliate Area\u00a0<\/a><\/strong><\/li>\n<\/ul>\n<\/div>\n<p>After you install the plugin by default the URL for the affiliates to signup\/log into their account has the following URL:<\/p>\n<div id=\"code_block\">http:\/\/www.your-domain-name.com\/wp-content\/plugins\/wp-affiliate-platform\/affiliates\/<\/div>\n<p><strong><span style=\"color: #ff0000;\">First of all, this is not a mandatory step that you need to perform for the plugin to work. This instruction is here for any advanced user who wants to customize the affiliate view&#8217;s URL.<\/span><\/strong><\/p>\n<p>If you want to customize this URL (eg. you want your affiliates login page to be at http:\/\/www.your-domain-name.com\/affiliates) then you can achieve this in two ways (<strong><em>Please note that a little bit of URL structure knowledge is required for this<\/em><\/strong>):<\/p>\n<h3>Option 1 (The Redirection method)<\/h3>\n<p>1. Download the &#8216;<a href=\"http:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/wp-content\/uploads\/aff_redirection.zip\">index.php<\/a>&#8216; file that has an automatic redirection to the affiliates page.<br \/>\n2. Open the &#8220;index.php&#8221; file for editing and update the &#8216;www.your-domain-name.com&#8217; text with your true domain name.<br \/>\n3. Upload this file to the directory where you want your affiliates to go and signup. (eg. www.your-domain-name.com\/affiliates)<\/p>\n<p>Now, when someone visits &#8216;http:\/\/www.your-domain-name.com\/affiliates&#8217; the visitor will automatically be redirected to &#8216;http:\/\/www.your-domain-name.com\/wp-content\/plugins\/wp-affiliate-platform\/affiliates\/&#8217;<\/p>\n<h3>Option 2 (The Copy Method)<\/h3>\n<p>1. Copy the &#8220;affiliates&#8221; directory (this directory can be found inside the &#8220;wp-affiliate-platform&#8221; directory) and put it where you want it.<br \/>\n2. Update the &#8216;misc_func.php&#8217; (located inside the affiliates directory) to have the correct relative location of the &#8216;wp-load.php&#8217; file.<\/p>\n<p>The &#8216;misc_func.php&#8217; file uses a wordpress system file called &#8216;wp-load.php&#8217; so you will have to update the &#8216;include&#8217; statement at the top of the file (misc_func.php) and enter the correct path of the &#8216;wp-load.php&#8217; file relative to the target URL. the &#8216;wp-load.php&#8217; file is located on your wordpress installation directory.<\/p>\n<p>So, for example if you want to move the affiliate URL to http:\/\/www.your-domain-name.com\/affiliates and your wordpress is installed on the root directory then change the following:<\/p>\n<p><code>include_once('..\/..\/..\/..\/wp-load.php');<\/code><\/p>\n<p>to<\/p>\n<p><code>include_once('..\/wp-load.php');<\/code><\/p>\n<p>Please leave a comment if you don&#8217;t understand a step.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Note: An easier way to\u00a0achieve\u00a0the same result is to use the 2nd option from the following documentation: Setup an OnPage Affiliate Area\u00a0 After you install the plugin by default the URL for the affiliates to signup\/log into their account has the following URL: http:\/\/www.your-domain-name.com\/wp-content\/plugins\/wp-affiliate-platform\/affiliates\/ First of all, this is not a mandatory step that you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[3],"tags":[7,5],"class_list":{"0":"post-42","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-additional-resources","7":"tag-customize-affiliate-view","8":"tag-wp-affiliate-platform","9":"entry"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Change\/Customize the URL of the affiliate view<\/title>\n<meta name=\"description\" content=\"How to Change\/Customize the URL of the affiliate view so affiliates can log into their account using a URL that you prefer\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/how-to-changecustomize-the-url-of-the-affiliate-view-42\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/how-to-changecustomize-the-url-of-the-affiliate-view-42#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/how-to-changecustomize-the-url-of-the-affiliate-view-42\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/#\/schema\/person\/b3a690506213824832751de546a340fb\"},\"headline\":\"How to Change\/Customize the URL of the affiliate view\",\"datePublished\":\"2009-07-09T01:16:25+00:00\",\"dateModified\":\"2016-12-27T03:47:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/how-to-changecustomize-the-url-of-the-affiliate-view-42\"},\"wordCount\":368,\"commentCount\":30,\"keywords\":[\"Customize Affiliate View\",\"WP Affiliate Platform\"],\"articleSection\":[\"Additional Resources\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/how-to-changecustomize-the-url-of-the-affiliate-view-42#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/how-to-changecustomize-the-url-of-the-affiliate-view-42\",\"url\":\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/how-to-changecustomize-the-url-of-the-affiliate-view-42\",\"name\":\"How to Change\/Customize the URL of the affiliate view\",\"isPartOf\":{\"@id\":\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/#website\"},\"datePublished\":\"2009-07-09T01:16:25+00:00\",\"dateModified\":\"2016-12-27T03:47:13+00:00\",\"author\":{\"@id\":\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/#\/schema\/person\/b3a690506213824832751de546a340fb\"},\"description\":\"How to Change\/Customize the URL of the affiliate view so affiliates can log into their account using a URL that you prefer\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/how-to-changecustomize-the-url-of-the-affiliate-view-42\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/#website\",\"url\":\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/\",\"name\":\"WordPress Affiliate Platform\",\"description\":\"Take control of your affiliates and drive more sales\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/#\/schema\/person\/b3a690506213824832751de546a340fb\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/3a21ab4072e533cf470d80fc2f0fd3639872824ade4e23709397e109b24f8857?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3a21ab4072e533cf470d80fc2f0fd3639872824ade4e23709397e109b24f8857?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3a21ab4072e533cf470d80fc2f0fd3639872824ade4e23709397e109b24f8857?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Change\/Customize the URL of the affiliate view","description":"How to Change\/Customize the URL of the affiliate view so affiliates can log into their account using a URL that you prefer","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/how-to-changecustomize-the-url-of-the-affiliate-view-42","twitter_misc":{"Written by":"admin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/how-to-changecustomize-the-url-of-the-affiliate-view-42#article","isPartOf":{"@id":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/how-to-changecustomize-the-url-of-the-affiliate-view-42"},"author":{"name":"admin","@id":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/#\/schema\/person\/b3a690506213824832751de546a340fb"},"headline":"How to Change\/Customize the URL of the affiliate view","datePublished":"2009-07-09T01:16:25+00:00","dateModified":"2016-12-27T03:47:13+00:00","mainEntityOfPage":{"@id":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/how-to-changecustomize-the-url-of-the-affiliate-view-42"},"wordCount":368,"commentCount":30,"keywords":["Customize Affiliate View","WP Affiliate Platform"],"articleSection":["Additional Resources"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/how-to-changecustomize-the-url-of-the-affiliate-view-42#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/how-to-changecustomize-the-url-of-the-affiliate-view-42","url":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/how-to-changecustomize-the-url-of-the-affiliate-view-42","name":"How to Change\/Customize the URL of the affiliate view","isPartOf":{"@id":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/#website"},"datePublished":"2009-07-09T01:16:25+00:00","dateModified":"2016-12-27T03:47:13+00:00","author":{"@id":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/#\/schema\/person\/b3a690506213824832751de546a340fb"},"description":"How to Change\/Customize the URL of the affiliate view so affiliates can log into their account using a URL that you prefer","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/how-to-changecustomize-the-url-of-the-affiliate-view-42"]}]},{"@type":"WebSite","@id":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/#website","url":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/","name":"WordPress Affiliate Platform","description":"Take control of your affiliates and drive more sales","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/#\/schema\/person\/b3a690506213824832751de546a340fb","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/3a21ab4072e533cf470d80fc2f0fd3639872824ade4e23709397e109b24f8857?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/3a21ab4072e533cf470d80fc2f0fd3639872824ade4e23709397e109b24f8857?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3a21ab4072e533cf470d80fc2f0fd3639872824ade4e23709397e109b24f8857?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/wp-json\/wp\/v2\/posts\/42","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/wp-json\/wp\/v2\/comments?post=42"}],"version-history":[{"count":0,"href":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/wp-json\/wp\/v2\/posts\/42\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/wp-json\/wp\/v2\/media?parent=42"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/wp-json\/wp\/v2\/categories?post=42"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/wp-json\/wp\/v2\/tags?post=42"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}