1

OK, so I'm trying to redirect an old site, as well as its subpages to specific subpages and while the root redirects fine, the specific subpages don't redirect to what I've specified, instead going to 404s. The old site is www.csulb.edu/web/journals/riprap/, and as you can see, if you go to that site it redirects to the new site. But the subpages within it are not redirecting. Here is my .htaccess code:

Options +FollowSymlinks
RewriteEngine on
RedirectMatch ^/$ http://www.csulb.edu/colleges/cla/departments/english/riprapjournal/
Redirect 301 /submission_guidelines.htm http://www.csulb.edu/colleges/cla/departments/english/riprap-journal-submission-guidelines/
Redirect 301 /backissues.htm http://www.csulb.edu/colleges/cla/departments/english/riprap-backissues/
Redirect 301 /links.htm http://www.csulb.edu/colleges/cla/departments/english/riprap-links/
Redirect 301 /contact.htm http://www.csulb.edu/colleges/cla/departments/english/riprap-contact/

What is the problem with this? The first 301 redirect is trying to tell www.csulb.edu/web/journals/riprap/submission_guidelines.htm to go to http://www.csulb.edu/colleges/cla/departments/english/riprap-journal-submission-guidelines/, but it goes to a 404 page. Please help!

4

1 回答 1

0

你能试一下吗:

Options +FollowSymlinks
RedirectMatch ^/$ /colleges/cla/departments/english/riprapjournal/
Redirect 301 submission_guidelines.htm /colleges/cla/departments/english/riprap-journal-submission-guidelines/
Redirect 301 backissues.htm /colleges/cla/departments/english/riprap-backissues/
Redirect 301 links.htm /colleges/cla/departments/english/riprap-links/
Redirect 301 contact.htm /colleges/cla/departments/english/riprap-contact/
于 2013-10-16T18:03:13.013 回答