Solved

url rewrites not working in codeigniter

Posted on 2016-11-28
2
10 Views
Last Modified: 2016-11-28
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 51

Accepted Solution

by:
Julian Hansen earned 500 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now