Solved

CL

Posted on 2011-09-02
5
181 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 110

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

717 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