Can't Redirect .shtml, .asp, .aspx, .cfm, .pl
-
NaturoPay
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 3
-
Thank you received: 0
-
-
9 years 7 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.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
-
NaturoPay
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 3
-
Thank you received: 0
-
-
9 years 7 months ago #4203
by NaturoPay
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.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
9 years 7 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
-
Less
More
-
Posts: 3
-
Thank you received: 0
-
-
9 years 7 months ago #4207
by NaturoPay
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.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
9 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.180 seconds