Hello,
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!
Best Regards,
Richi
Looking for quality ClipBucket Hosting? Look no further than Arvixe Web Hosting!
how this artical work with nginx, because nginx dont support .httaccess
Hello,
Thanks for bringing that up. I already have plans of writing this article compatible for nginx. Meanwhile, you can check this site out, http://winginx.com/htaccess, which is an htaccess rewriterule converter.
Paste the htaccess rewriterule there and see it converted into nginx format. You can also Google how to manually convert Apache Rewriterules to nginx friendly ones.
Should you have any questions, please don’t hesitate to contact me.
Best Regards,
Richi
Hey Richi,
I’m getting issues here.
I have tried to show the url as
“v=ABCD” to “/ABCD” but the CSS and related files JS etc. looks missing.
Can you guide me on that?
Thanks