under redirect rule browser

izhmel
@izhmel
7 years ago
1,354 posts
If I had a broken link that triggers a "404" broken link , can I redirect the link that triggered the 404 to a given link i.e. http://www.dubmusic.com/bftd


--
The Scientist
dubmusic.com
Thanks for any assistance.

updated by @izhmel: 05/08/18 04:23:20PM
michael
@michael
7 years ago
7,799 posts
sure, use the jrRedirect module to redirect any url you want on your site to somewhere else.
izhmel
@izhmel
7 years ago
1,354 posts
but it don't work , I want to go from http://www.dubmusic.com/r/http://www.dubmusic.com/britains-finest-beatles-tribute-band-live-on-stage/uploaded_audio/albums/britains-finest-beatles-tribute-band-mixed-by-the-scientist , wish is a broken link , to http://www.dubmusic.com/bftd , it lands me on http://www.dubmusic.com instead ,wish is the home page ...


I finds it puts http://www.dubmusic.com/r/http://www.dubmusic.com, twice with out me putting it


--
The Scientist
dubmusic.com
Thanks for any assistance.

updated by @izhmel: 02/01/18 12:50:28PM
michael
@michael
7 years ago
7,799 posts
ah right. You want to take any requests coming in to:
http://www.dubmusic.com/bftd
and redirect them to:
http://www.dubmusic.com/bftd/...........

you could put a redirect into your skins profile_index.tpl
{jrCore_location('http://www.dubmusic.com/britains-finest-beatles-tribute-band-live-on-stage/uploaded_audio/albums/britains-finest-beatles-tribute-band-mixed-by-the-scientist')}

but that would redirect to that page from EVERY profile. so you'd need to check that the profile name is correct before putting that in.

probably:
{if $_profile_name_url == 'bftd'}
{jrCore_location('http://www.dubmusic.com/britains-finest-beatles-tribute-band-live-on-stage/uploaded_audio/albums/britains-finest-beatles-tribute-band-mixed-by-the-scientist')}
{/if}

but check with {debug} to make sure:

Docs: "{debug}"
https://www.jamroom.net/the-jamroom-network/documentation/module-developer-guide/1477/debug
izhmel
@izhmel
7 years ago
1,354 posts
The redirect still not working , it need fixing


--
The Scientist
dubmusic.com
Thanks for any assistance.
izhmel
@izhmel
7 years ago
1,354 posts
I still cant get the redirect to work , it is not working


--
The Scientist
dubmusic.com
Thanks for any assistance.

Tags