• Home
  • Get help
  • Ask a question
Last post 14 hours 11 min ago
Posts last week 141
Average response time last week 4 hours 42 min
All time posts 67824
All time tickets 10480
All time avg. posts per day 21

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.

#7135 – Creating SEF Url for joomla component

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.
Tuesday, 28 April 2020 09:58 UTC
ziguri
 Hi,

I´m trying to define manual SEF urls for component view, but when I try to reach them it always returns a 404.

For example I would like to transform this

https://xxxx.com/index.php/component/vikappointments/?view=employeesearch&id_employee=72

into this

https://xxxx.com/profissionais/susanaagostinho

I follow every step in the URL manager but I this something is not ok.

Can you help?

Thank you
Kind regards
Orlando
Tuesday, 28 April 2020 10:05 UTC
wb_weeblr
Hi Orlando,

The problem here is not in Joomla or sh404SEF but in your webserver. The 404 you're seeing is a webserver error not one triggered by Joomla:



What you've done here is not so much change the URL but you removed also the /index.php part in URLs( you set "Use URL rewriting" to Yes in Joomla configuration).

That's ok and well butfor this to continue working, you need to configure your webserver to accept that. This is done by having a .htaccess file in the root folder of your site.

Joomla provides a sample one, currently named htaccess.txt located in your root folder. You should rename that file to .htaccess using FTP or through your hosting control panel.

The content of htaccess.txt should work with most webservers but it could not work. If you get an error after renaming htaccess.txt to .htaccess, just rename it back to htaccess.txt.
You should then contact your hosting company to know which exact .htaccess file content is suited for their specific webserver configuration.

Best regards

Yannick Gaultier
weeblr.com
@weeblr
 
Tuesday, 28 April 2020 13:24 UTC
ziguri
Hi Yannick,
Thank you for the fast response.Well, yesterday night I revert all the changes after checking that the urls were not working, thats why you are getting those results. Yet, before that I was able to see the sh404sef 404 page when trying to reach the sef url created.
I´ve followed every steps you described, including  the rename of .htaccess, but still...Today night I will try further configuration. Should I need to put "index.php" in the newlly created sef url?
Thank youKind regards,Orlando


On Tue, 28 Apr 2020 at 11:05, Weeblr <[email protected]> wrote:

Tuesday, 28 April 2020 14:50 UTC
wb_weeblr
Hi

Should I need to put "index.php" in the newlly created sef url?
I'm not entirely sure what you mean by that. You are not supposed to "put" anything in URLs. Both with Joomla and sh404SEF, URL creation is entirely automatica and you do not need to do anything about them.

Now, having /index.php/ inserted in URLs is also entirely automatic (whether with Joomla only or with sh404SEF as well). It depends on the settings "Use URL rewriting" found in Joomla global configuration (ie that's not an sh404SEF setting).

If "Use URL rewriting" is enabled, then:

- you will not have /index.php/ in URLs
- you will need to have a valid .htaccess file at the root of your server

If "Use URL rewriting" is disabled, then:

- you will have /index.php/ in URLs
- you will not need to have a valid .htaccess file at the root of your server

Having "/index.php/" in URLs is a trick for sites that run on servers where URL rewriting (in essence, .htaccess) is not available or has not been setup for some reason.

including the rename of .htaccess, but still..
Renaming is not enough. The content of that .htaccess file has to work for your server. The .htaccess content has to be the one fitting your webserver. The htaccess.txt content that comes with Joomla is a generic one that works with most Apache server. It will not work with ALL Apache server and that's when you have to document yourself about setting it up for your server, or just ask your hosting company: they are the ones who setup your webserver, they'll be able to configure the .htaccess file if the one that came with Joomla does not work.

Best regards

Yannick Gaultier
weeblr.com
@weeblr


 
Wednesday, 13 May 2020 05:34 UTC
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.
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.