Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! 2.6/7 » Questions about Stars! AutoHost » mod_rewrite sahforum to sahforum2
Re: mod_rewrite sahforum to sahforum2 Tue, 30 July 2013 11:09 Go to previous messageGo to previous message
Altruist is currently offline Altruist

 
Commander

Messages: 1068
Registered: August 2005
Location: Berlin
Ok, I've looked it up and it is, indeed, very simple.

At the moment all forum posts are available and accessable at
* http://starsautohost.org/sahforum2/...

To fix all (broken) URLs linking to the old forum we just need the following 2 lines:
code for .htaccess to redicrect /sahforum to /sahforum2
RewriteEngine on
Redirect /sahforum http://starsautohost.org/sahforum2


With those 2 lines every link to the old forum gets automatically redirected to the new temporary forum.

In the base directory of http://starsautohost.org/ there is probably a file called ".htaccess". Just place the above 2 lines into it and upload it. If there is no file called ".htaccess", just create one.

Ron wrote on Fri, 26 July 2013 04:32
Sigh, Rolling Eyes was supposed to be temporary. There is one more minor upgrade to the forum software that I need to do, but it's been a year already... The URL change was to help preserve a backup of the older version of the forum files and database if needed.


If you are done with that, we'll have the problem that all new links to /sahforum2 get broken. We can solve this as easily as before. Just replace the above 2 lines with the following:

code for .htaccess to redicrect /sahforum2 to /sahforum
RewriteEngine on
Redirect permanent /sahforum2 http://starsautohost.org/sahforum


This way all links are working at all times, wether they use /sahforum or sahforum2.

An explanation how to use redirect can be found at:
* https://httpd.apache.org/docs/2.2/mod/mod_alias.html#redirec t

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Stars! Forum Rank.. and where can I read more
Next Topic: Congrats to Lqdtr for being the 1300th member
Goto Forum:
  


Current Time: Sat May 04 09:47:09 EDT 2024