Solved

url rewrites not working in codeigniter

Posted on 2016-11-28
2
56 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
[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 Comments
 
LVL 57

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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
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…

752 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