How to Add a New SEO URL (Rewrite Rule) in Clip-Bucket v2

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).

a0

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.

a1

3. The Rewrite URL to redirect from /my_earnings.php to /myearnings will be:

RewriteRule ^myearnings					my_earnings.php [nc]

a2

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!

Tags: , , , , , , , , , , , , , , , , , | Posted under ClipBucket | RSS 2.0

Author Spotlight

Richi González

Richi González

I started programming when I was 12. I'm a Developer and have been working with the Clip-Bucket script since it came out. I'm the Liaison between Arvixe and Clip-Bucket, so anything you need regarding Clip-Bucket or any particular computer-related subject you need, let me know so I can assist you.

3 Comments on How to Add a New SEO URL (Rewrite Rule) in Clip-Bucket v2

  1. Raja says:

    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

  2. Jigs says:

    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

Leave a Reply

Your email address will not be published. Required fields are marked *


+ 6 = 8

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>