• Home
  • Get help
  • Ask a question
Last post 1 hour 8 min ago
Posts last week 141
Average response time last week 4 hours 42 min
All time posts 67794
All time tickets 10475
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.

#3119 – How to redirect every url after a certain URL to a default page but retain the URL

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, 06 January 2017 12:04 UTC
chizuoka
 How to redirect every url after a certain URL to a default page but retain the URL for example...

www.domain.com/s/abc
www.domain.com/s/def
www.domain.com/s/ijk

will always go to a non-sef url
www.domain.com/index.php?option=com_k2&Itemid=770&id=13&lang=en&layout=category&task=category&view=itemlist

but retain the URL coming in... sort of a custom 404 page for everything that starts with
www.domain.com/s/

Reason being we are trying to make use of the history API in browsers.
Friday, 06 January 2017 16:19 UTC
wb_weeblr
Hi

I am afraid this is not something we can do. Best and simplest is to handle this in your .htaccess file. You probably don't want these pages go to a non-sef URL, but instead to the SEF equivalent?

Rgds
 
Sunday, 08 January 2017 14:18 UTC
chizuoka
i mean like it loads a particular page in joomla... but retains the URL. Its primarily for a search page so that any thing added to the last end i could use as the search param....
Sunday, 08 January 2017 14:21 UTC
chizuoka
could you advice what i could do if sh404sef cant do it...
Tuesday, 10 January 2017 05:22 UTC
chizuoka
Hi... i realize that it should be a kind of custom 404 page. While the usual custom 404 page gets EVERY broken link.... how can i customize it such that only links that begin with domain.com/s goes to this particular 404 page?

Thanks.
Tuesday, 10 January 2017 14:32 UTC
wb_weeblr
Hi

As already stated in my reply:

I am afraid this is not something we can do. Best and simplest is to handle this in your .htaccess file.


Rgds
 
Wednesday, 11 January 2017 05:16 UTC
chizuoka
Would you be able to advice the syntax i should be sending the page to ... do i use the non-sef URL or something else? Sorry for the questions because Im not familiar with Joomla internal url system
Wednesday, 11 January 2017 09:06 UTC
wb_weeblr
Hi

We cannot provide support for server setup, such as .htaccess, as .htaccess is not "Joomla internal" or sh404SEF, it's a server thing. So you should only use SEF URLs to do the redirect, as your web server does not know Joomla either.

I would suggest you turn to a website integrator maybe?

Rgds
 
Friday, 13 January 2017 03:57 UTC
chizuoka
thanks for the patience, perhaps you can enlighten me how SH404SEF shows a 404 page when the page does not exist but the URL is not changed, once i understand i probably can hack around a bit to have it do what i need?
Friday, 13 January 2017 10:36 UTC
wb_weeblr
Hi

SH404SEF shows a 404 page when the page does not exist but the URL is not changed
The URL is not supposed to change when a 404 happens. If you make a redirect, as you plan, then it is NOT a 404.

A 404 is not about the content displayed. It's about the HTTP status code of the web server response. sh404SEF takes over the entire Joomla code to send the appropriate HTTP status code, and display the page. I'm sorry but I don't see how you could handle reproducing that process, unless you are a PHP programmer and want to spend quite some times uner the hood of Joomla and sh404SEF, which are rather complex pieces of software.

Instead, what you appears to want is to create a redirect for some pages. Again, this must be done in your .htaccess file. Create a Joomla page with whatever content you want to display for those URLs, find its URL (/my-info-page.html), and redirect those pages starting with /s/ to /my-info-page.html.

If you can't do it yourself, maybe Joomla forums can help, or you can also hire a freelancer or an integrator.

Rgds
 
Monday, 16 January 2017 09:28 UTC
chizuoka
Thanks.. i will try ..
Monday, 16 January 2017 10:07 UTC
wb_weeblr
Hi

Best of luck. Closing this ticket now, feel free to open a new one as needed. If you do so, please mention this ticket number in the new one.

If you created any superadmin account for us, be sure to delete or block it now to avoid unnecessary risk in the future.

Be sure to also check out wbAMP, our new Accelerated Mobiles pages plugin for Joomla - the next big thing is SEO, direct from Google themselves!

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.