• Home
  • Get help
  • Ask a question
Last post 3 hours 24 min ago
Posts last week 191
Average response time last week 1 hour 50 min
All time posts 68187
All time tickets 10530
All time avg. posts per day 20

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#925 – get 404 error after activating sh404SEF on the NEW URLs

Posted in ‘sh404SEF’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Friday, 28 August 2015 19:31 UTC
lordhelmchen
Dear support team,

I configured the test instance xxxx.net of my website.
My web hoster supports redirects via .htaccess so I Enable URL optimization with
Rewriting mode with .htaccess.

After that I call my test instance with xxxx.net and the normal startpage is shown,
But if I try any of the links on the page or any of the new generated SEF urls, I got a 404 page not found error. I cleared browser cache but the result is the same.

What is my mistake ?!

If you want to have login credentials, please give me your email address.

Best regards

Markus
Monday, 31 August 2015 10:31 UTC
wb_dimitris
Hi,

What are those links? Are they generated automatically by Joomla or they are just hardcoded links?
If those are hardcoded links you will have to manually update them to their new URLs that sh404SEF is expecting to find.

Regards
Monday, 31 August 2015 19:46 UTC
lordhelmchen
Dear support team,

also links generated by joomla e.g. menu links are broken.

You can have a look at the installation at
http://xxxx.net/administrator/
user: xxxx
pwd: xxxx

Best regards

Markus

Monday, 31 August 2015 19:51 UTC
wb_weeblr
Hi

The 404 errors you are getting are from your web server. Are you sure you have setup properly an .htaccess file? it looks like not.
Please refer to documentation, specifically the Joomla! setup page, which leads you the Joomla documentation about .htaccess files.

Once you get the Joomla setup working, ie create your .htaccess file, you should be fine.

Rgds
 
Monday, 31 August 2015 20:17 UTC
lordhelmchen
Dear support team,

I think my .htaccess works fine.
Just for testing I created an empty new one and added only the following two lines:

RewriteEngine on
redirect 301 /testwebsite http://xxxx.net

Now you can enter xxxx.net/testwebsite in your browser and you will be redirected by the .htaccess file to http://xxxx.net.

I think this is exactly what the .htaccess file should be able to do.

Also I configured joomla as described in the documentation (see attached snpshot file)

I added a ftp user you could use to check the .htaccess file:
ftpserver: xxxx.net
user: xxxx
password xxxx

Any other hints why all links are broken ?

Best regards

Markus
Tuesday, 01 September 2015 10:41 UTC
wb_weeblr
Hi
I think my .htaccess works fine.

Just for testing I created an empty new one and added only the following two lines:



RewriteEngine on

redirect 301 /testwebsite http://xxxx.net



Now you can enter xxxx.net/testwebsite in your browser and you will be redirected by the .htaccess file to http://xxxx.net.



I think this is exactly what the .htaccess file should be able to do.

Nope, your htaccess doesn't work and this is totally NOT what an .htaccess does when it comes to URL rewriting. What you have done above is simply redirecting an URL to another, and again has nothing to do with actual URL rewriting.

1 - This is not related to sh404SEF: you have the same problem when Joomla URL rewriting is enabled (I know, I tested that on your site, this is how one can check the problem is on the server or inside Joomla)

2 - I have linked above to the (very good) Joomla guide on how to setup a valid .htaccess. Have you read it?

3 - Joomla comes with a usually valid .htaccess file. It comes named htaccess.txt and has all instructions required in it, you just need to rename it to .htaccess to enable it.
This is again all explained in the Joomla URL rewriting guide I linked to.

Rgds
 
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.