Solved

.htaccess redirect

Posted on 2013-01-25
5
361 Views
Last Modified: 2013-01-30
I have 2 redirects in my .htaccess where if I have 1 of them the other one doesn't work, and all the other 200 redirects I have work fine.

Redirect 301 /students/current/regulations/grading http://my.site/admissions/enrolment-services/academic-regulations/grading

Redirect 301 /students/current/regulations http://mysite.ca/admissions/enrolment-services/academic-regulations

The first one in the list works fine (ie if I switched them around the first one would work) The 2nd  just redirects to some shortened url that's not in the path, what am I missing.  I have no redirects that are similar.

and like I said, any other URL's that I have for redirects (about 200) work fine.

Just those 2 conflict.

What am I missing?
0
Comment
Question by:Tigger996
[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
  • 4
5 Comments
 
LVL 9

Expert Comment

by:David Carr
ID: 38820528
Can you share the exact syntax of the two redirects in your .htaccess file?
0
 

Author Comment

by:Tigger996
ID: 38820538
I did above -- but mysite is substituted.

Redirect 301 /students/current/regulations/grading http://my.site/admissions/enrolment-services/academic-regulations/grading

Redirect 301 /students/current/regulations http://mysite.ca/admissions/enrolment-services/academic-regulations

Open in new window

0
 

Author Comment

by:Tigger996
ID: 38820559
I also have this:

Redirect 301 /students/future/parents/parents-faq http://mysite.com/admissions/welcome-to-selkirk/parents-families/common-questions

Open in new window


And it's redirecting to: /future-students/parents/parents-faq
0
 

Accepted Solution

by:
Tigger996 earned 0 total points
ID: 38820622
I think I got it.  I didn't realize how important order was.
0
 

Author Closing Comment

by:Tigger996
ID: 38834569
I answered my own question.  Please remove.
0

Featured Post

Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

Question has a verified solution.

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

Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

726 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