?
Solved

.htaccess redirect

Posted on 2013-01-25
5
Medium Priority
?
366 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses
Course of the Month15 days, 5 hours left to enroll

770 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