× Here you can get community support related to ReDJ.

Redirect for Mediawiki

  • votake
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 8 months ago - 8 years 8 months ago #4759 by votake
Redirect for Mediawiki was created by votake
Hi, I have a simple question.

I am moving my wiki site to the new site which has new url.

Old wiki folder is under the below directory.

http://(old site)/wiki/

And, new site is under /

http://(new site)

So, I wanted to redirect accesses to the old site to new site.

For instance,

http://(old site)/wiki/index.php?title=ReDJ

should be redirected to

http://(new site)/index.php?title=ReDJ

And, I am not fully familiar with ReDJ.

ReDJ Enterprise 1.7.10 is in my old site (Joomla 3.4.8_) is in my (old) site.

My trials

From /wiki/*
To http://(new site)/

From /wiki/*$
To http://(new site)

From ^/wiki/
To http://(new site)/

and the combinations of them all failed :pinch:

I would appreciate any help or suggestions.

Thank you very much.
Last edit: 8 years 8 months ago by votake.

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #4761 by admin
Replied by admin on topic Redirect for Mediawiki
H,
since the old wiki was under:

http://(old site)/wiki/index.php?title=ReDJ

The first thing to do is to "remove" it, otherwise the webserver will continue to pass requests to the wiki (not to joomla). After this first step you should check that calling http://(old site)/wiki/index.php?title=ReDJ you get the response (probably a 404) from joomla. If still not, add this in your .htaccess file (should be located in the joomla web root:
ErrorDocument 404 /

After these steps your rules should start to work.

Kind regards,
Luigi

Please Log in or Create an account to join the conversation.

  • votake
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 8 months ago #4762 by votake
Replied by votake on topic Redirect for Mediawiki
Wow! Great! It works!! Thank you so much!

Currently, my setting is
From /wiki
to http://(new site)

Then, every links (such as /wiki/index.php?title=word A, /wiki/index.php?title=word B etc) are redirected to the top page of http://(new site).

Is there any smart way to redirect

/wiki/index.php?title=word X

to

http://(new site)/index.php?title=word X

?

Thank you very much.

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #4763 by admin
Replied by admin on topic Redirect for Mediawiki
Of course:
From URL: ^/wiki/
To URL: http://newsite/index.php?title={queryvar title}
Request only: true (checked)

Kind regards,
Luigi

Please Log in or Create an account to join the conversation.

  • votake
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 8 months ago #4764 by votake
Replied by votake on topic Redirect for Mediawiki
Wow! Perfect! Fantastic!
Thank you for the suggestion.
ReDJ works exactly what I want!

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #4765 by admin
Replied by admin on topic Redirect for Mediawiki
U're welcome.

Please Log in or Create an account to join the conversation.

Time to create page: 0.163 seconds