Solved

.htaccess redirect

Posted on 2013-01-25
5
355 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
  • 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 is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

856 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