?
Solved

CL

Posted on 2011-09-02
5
Medium Priority
?
187 Views
Last Modified: 2012-05-12
Hi i just begin study codeigniter and i have a problem i want to make short link like
http:/website.com/page/index/page/about_us/
to
http:/website.com/page/about_us/

How i can do it in codeigniter
0
Comment
Question by:umaxim
  • 2
  • 2
5 Comments
 
LVL 17

Expert Comment

by:psimation
ID: 36474988
You can use URL re-writing to do this. On Apache, you can use rewriting rules in your .htaccess file in the root of the website.
0
 
LVL 1

Author Comment

by:umaxim
ID: 36474998
i try it is not working can you give some example
0
 
LVL 17

Accepted Solution

by:
psimation earned 2000 total points
ID: 36475582
Have a look here.

About halfway through, there is an example that should fit your need exactly.

http://www.workingwith.me.uk/articles/scripting/mod_rewrite
0
 
LVL 111

Expert Comment

by:Ray Paseur
ID: 36476127
You can make short links with the service from Bit.LY -- very useful!
https://bitly.com/
0
 
LVL 1

Author Comment

by:umaxim
ID: 36477896
But what about special function in codeigniter to replace link to make it shorter. How it works
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses
Course of the Month15 days, 9 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question