Solved

CL

Posted on 2011-09-02
5
176 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 500 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 109

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
wordpress on root is limiting my .htaccess 404.php options 4 30
Dynamic varibles 5 33
maybe no no httpd.conf 6 47
Is there a simpler dropbox system? 10 22
Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
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.

810 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