× Here you can get community support related to ReDJ.

Problem with redirect when .asp?

More
9 years 7 months ago #3010 by alebo
Problem with redirect when .asp? was created by alebo
Hi there,

I have been using RedJ for almost a year now with no issues. However something has come up today that I can't figure out.

I have this old page
mysite.com/cmb/directory/details.asp?id=3803

I want to catch all traffic going to this old 'cmb/directory' so I set up a rule like this. The new directory is at mysite.com/cmb/faculty-research
FROM: ^/cmb/directory
TO: /cmb/faculty-research

For some reason this is not working when a user goes to
mysite.com/cmb/directory/details.asp?id=3803

But if I remove the '.' part of the url the redirect works. It seems like the period is causing issues, how can I fix this?

Thank you for your time.

Please Log in or Create an account to join the conversation.

More
9 years 7 months ago #3014 by admin
Replied by admin on topic Problem with redirect when .asp?
Try this:
From URL: ^/cmb/directory/
To URL: {scheme}://{siteurl}/cmb/faculty-research
Request only: true (checked)

Let me know...

Please Log in or Create an account to join the conversation.

More
9 years 7 months ago #3026 by alebo
Replied by alebo on topic Problem with redirect when .asp?
Sorry for my delayed response, I didn't realize someone had responded. Your solution is unfortunately is giving the same results. It doesn't work with there is a period. If I remove the period the redirect works as expected.

Thank you again for your time.

Please Log in or Create an account to join the conversation.

More
9 years 7 months ago #3027 by admin
Replied by admin on topic Problem with redirect when .asp?
I suspect that the issue is related to a missing ErrorDocument option. To manage any requests (included .asp pages)you need to add this at the end of .htaccess file:
ErrorDocument 404 /

Can you check this?
The following user(s) said Thank You: alebo

Please Log in or Create an account to join the conversation.

More
9 years 7 months ago #3028 by alebo
Replied by alebo on topic Problem with redirect when .asp?
That did the trick! Thanks.

Please Log in or Create an account to join the conversation.

More
9 years 7 months ago #3029 by admin
Replied by admin on topic Problem with redirect when .asp?
U're welcome.

Please Log in or Create an account to join the conversation.

Time to create page: 0.088 seconds