Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

url rewrites not working in codeigniter

Posted on 2016-11-28
2
Medium Priority
?
118 Views
Last Modified: 2017-02-02
I replaced an old minisite written in classic asp with a new one built on a codeigniter platform. When I tried to create 301 redirects in ii8 they weren't implemented and resulted in codeigniter 404 pages. As a workaround I just inserted an asp redirect into all the asp pages, which was kind of tedious, but it worked. I just wanted to know how this could be better accomplished either in codeigniter or by having codeigniter to recognize the url redirect rules. As an experiment I created some url redirects from asp to php pages, which worked so that's not the problem. I think it must have something to do with codeigniter routing.
0
Comment
Question by:avir
2 Comments
 
LVL 60

Accepted Solution

by:
Julian Hansen earned 2000 total points
ID: 41904034
or by having codeigniter to recognize the url redirect rules.
If the redirects are setup correctly to point to valid CI URL's then you should not have to do anything to CI. Sounds like your problem is in your redirect rules not resolving to valid CI urls.
0
 

Assisted Solution

by:avir
avir earned 0 total points
ID: 41904078
It looks like you led me in the right direction. I think my rewrite rules were not clear and unnecessary. I added an httpRedirect to the web.config file for all those asp files and it works fine.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

This article discusses how to implement server side field validation and display customized error messages to the client.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…
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…
Suggested Courses

886 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