solved URL Mapper Module

sekeri
sekeri
@ilker
10 years ago
334 posts
The line below does not work;

/guitar_lessons/default.aspx => /lessons


I am trying to move my lessons list page to Jamroom. Can you please help on directing www.mywebsite.com/guitar_lessons/default.aspx to www.mywebsite.com/lessons

Thanks.

updated by @ilker: 01/19/15 06:43:52AM
paul
@paul
10 years ago
4,326 posts
This module only works on urls that do not or no longer exists.
Does www.mywebsite.com/guitar_lessons/default.aspx already exist?


--
Paul Asher - JR Developer and System Import Specialist
sekeri
sekeri
@ilker
10 years ago
334 posts
No, this is not the case.
www.mywebsite.com/guitar_lessons/default.aspx is actually exists but I am copying all of the site to an .info extension.

www.mywebsite.info is completely new.
I want the users to be redirected to www.mywebsite.info/lessons if they want to go to www.mywebsite.info/guitar_lessons/default.aspx

And www.mywebsite.info/guitar_lessons/default.aspx certainly does not exist.
paul
@paul
10 years ago
4,326 posts
Sorry, I'm confused, but just to be clear, this module does not map across domains, so you cannot map anything from www.mywebsite.com to www.mywebsite.info

So does www.mywebsite.info fully exist yet and are you using the module on www.mywebsite.com or www.mywebsite.info?


--
Paul Asher - JR Developer and System Import Specialist
michael
@michael
10 years ago
7,714 posts
sekeri:....I am trying to move my lessons list page to Jamroom....
The jamroom module will only work if the urls are controlled from jamroom.

So if you have your site setup like
your-site.com/jamroom/lessons

and want to redirect from
your-site.com/wordpress/old_lessons

There is nothing that can be done above jamrooms root url because no jamroom module is firing there.
sekeri
sekeri
@ilker
10 years ago
334 posts
Okay, it is getting a little bit confusing here.

I have a Jamroom website and guitar lessons in it.

The URL in order to list the guitar lessons is www.mysite.com/lessons

I think so far it is clear?

I want my users to be redirected to www.mysite.com/lessons when they type www.mysite.com/guitar_lessons/default.aspx.

That is all I need. I think that adding the line below within the URL Mapping should be enough for it?? But it does not work.

/guitar_lessons/default.aspx => /lessons
paul
@paul
10 years ago
4,326 posts
OK - Clear now
The problem might be that you're defining a file. Try /guitar_lessons => /lessons
And to be clear again www.mysite.com/guitar_lessons/default.aspx needs to be an invalid url that generates a 404 error.


--
Paul Asher - JR Developer and System Import Specialist
sekeri
sekeri
@ilker
10 years ago
334 posts
/guitar_lessons/ => /lessons WORKS

/guitar_lessons/default => /lessons DOES NOT WORK
/guitar_lessons/default.aspx => /lessons DOES NOT WORK
/guitar_lessons/music_theory/ => /lessons DOES NOT WORK
/guitar_lessons/music_theory/default.aspx => /lessons DOES NOT WORK


I think this module needs so much improvement and fixing.
paul
@paul
10 years ago
4,326 posts
Working for me. I have this in my urlmapper config -

/guitar_lessons/default => /profile
/guitar_lessons/default.aspx => /profile
/guitar_lessons/music_theory/ => /profile
/guitar_lessons/music_theory/default.aspx => /profile

Everyone redirects to my /profile page.

Send your site's URL and admin login to support[at]jamroom[dot]net and I'll take a look at your set up
Thanks
Pa


--
Paul Asher - JR Developer and System Import Specialist
sekeri
sekeri
@ilker
10 years ago
334 posts
Incredible but It just works fine for me too. I dont know if it was a cache issue or not but I am sorry for interupting you with this issue.
paul
@paul
10 years ago
4,326 posts
Bet it was - I should know by now that whenever something doesn't work, clear caches (and run Integrity Check) first!!

Glad its sorted :-)


--
Paul Asher - JR Developer and System Import Specialist

Tags