Today I will show you how to add a new Rewrite Rule to your Clip-Bucket powered website, such as /myaccount, /videos, etc. You must have a page previously created, of course. This can be adapted to any website that uses Rewrite Rules (apache mod_rewrite).
1. Let’s say you have a page called my_earnings.php, and you regularly access it by going to http://yoursite.tld/my_earnings.php and we want the SEO URL to just be /myearnings.
2. To accomplish the former, we will add a new Rewrite Rule for our desired SEO URL. Open .htaccess, located in the root of your Clip-Bucket installation, where index.php, watch_video.php, etc, reside. If you don’t see it, make sure you can see hidden files.
3. The Rewrite URL to redirect from /my_earnings.php to /myearnings will be:
RewriteRule ^myearnings my_earnings.php [nc]
Notice how you first specify how the redirection will be, next to where, and finally [nc] (no-case) which makes the code don’t care about the case of the host name, if no nc flag is specified and a combination of upper case with/or lower case letters is typed, different from the host name, it won’t redirect.
4. Save and Upload.
You can now go test your newly created rule by going to http://yoursite.tld/myearnings .. If it works, then everything went ok, if not, please let me know so I can further assist you. Any question, comment, article suggestion, please do not hesitate to contact me!