× Here you can get community support related to ReDJ.

Can't Redirect .shtml, .asp, .aspx, .cfm, .pl

  • NaturoPay
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 8 months ago #4197 by NaturoPay
Hello,

I am not very technically savvy and have no experience with editing .htaccess files. We utilize Joomla 3 for our website and I downloaded the ReDJ extension to avoid having to mess with the .htaccess file. I have a number of pages returning 404 errors that I would like to permanently redirect (301) to our homepage. Using ReDJ, I was able to successfully redirect pages ending with ^.index.html and ^.default/html. I tried following similar rule logic for the URLs listed below but am not having any luck.

www.naturopay.com/index.shtml returns a 404 not-found response
www.naturopay.com/index.asp returns a 404 not-found response
www.naturopay.com/default.asp returns a 404 not-found response
www.naturopay.com/default.aspx returns a 404 not-found response
www.naturopay.com/index.aspx returns a 404 not-found response
www.naturopay.com/index.cfm returns a 404 not-found response
www.naturopay.com/index.pl returns a 404 not-found response

Has anyone else been able to create redirect rules for URLs like these without editing the .htaccess file? I would appreciate any help.

Thank you!

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

More
8 years 8 months ago #4199 by admin
The problem is these pages are served directly by your webserver. To avoid this add this line at the end of your .htaccess file:
ErrorDocument 404 /

More info here:
www.selfget.com/documentation/redj-joomla25/initial-configuration.html

Regards

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

  • NaturoPay
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 8 months ago #4203 by NaturoPay
Replied by NaturoPay on topic Can't Redirect .shtml, .asp, .aspx, .cfm, .pl
Thank you for the quick reply. I found my .htaccess file but am wondering if there is specific section the code should go in. It looks like I have a "Custom Redirects" section and a "Joomla! core SEF Section." If my htaccess file is a text file, does that mean I'm not currently using the file? I'm seeing a lot online about converting the .htaccess.txt to a .htaccess file and didn't know if that was something I needed to do.

Thank you for the additional insight.

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

More
8 years 8 months ago #4206 by admin
Just add at the end, after the last line of the standard joomla .htaccess file. To be clear, joomla comes with a htaccess.txt file that should be renamed to .htaccess.

Sincerely.

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

  • NaturoPay
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 8 months ago #4207 by NaturoPay
Replied by NaturoPay on topic Can't Redirect .shtml, .asp, .aspx, .cfm, .pl
Thank you for the help. I renamed my htaccess.txt file to .htaccess and added ErrorDocument 404 / at the end but I am still getting the 404 error for the urls mentioned in the subject line. Is there anything else I should try?

Thank you again.

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

More
8 years 7 months ago #4210 by admin
Now the requests are managed by joomla, so you can create a rule to redirect them. If already done, post me a rule to check why isn't workin'

regards

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

Time to create page: 0.097 seconds