Jump to content
SAU Community

Recommended Posts

Enable mod_rewite in httpd.conf in your apache config.

in the .htaccess file in the root dir put

RewriteEngine On

RewriteCond %{HTTP_HOST} ^(forums|forum)?.skylinesaustralia.com$ [NC]

RewriteRule ^(.*)$ [url=http://www.skylinesaustralia.com/forums/$1]http://www.skylinesaustralia.com/forums/$1[/url] [R=301,L]

What this will do is redirect whoever types in forums.skylinesaustralia.com/whatever or forum.skylinesaustralia.com/whatever to www.skylinesaustralia.com/forums/whatever

You can do a whole shiteload of funky stuff with mod_rewrite, including making the whole forum indexable by search engines directly (ie they won't have to search thru archived pages).

Link to comment
https://www.sau.com.au/forums/topic/44666-fix-for-forumsskylinesaustraliacom/
Share on other sites

yeah that too. I'm assuming that the server's used to co host saunsw.com etc.

don't you have to restart apache if you use httpd.conf every time you make a new rewrite rule?

funky: true you do need to restart apache if you make changes to httpd.conf, but if he needs to enable mod_rewrite he'll need to restart it anyway

and your right it does look like it co-hosts saunsw.com, but don't see how that makes much difference, cept when he restarts apache, both will go down for a few moments :)

mod_rewrite... One of the best apache tools ;)

And I agree with using the .htaccess file for the above, that's what it's for. Otherwise you'd have to restart apache for every change. Might not make a difference with SAU, but on a commercial site, that's something to be avoided at all costs.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

  • Latest Posts

    • Yes, I know🙄 but the sequential is not in my budget... don't want to reduce power neither, so looks like I'm stuck in the rabbit hole🤣
    • You’ll be very upset when you bust that too not to mention the gearing totally sucks. Don’t do it.
    • Is the panel filter one that is oiled? Have you ever cleaned or touched the AFM?
    • So.... the K&N air box thingo was too big, ended up gifting it to a mate, well, by gifting it he actually supplied food and beer at the pub,  which was nice, as it will not sit on a shelf in the garage for the next 10 years I did trim up some of the existing stuff to neaten it all up and gave it some wrinkle paint, unfortunately it currently has a used and abused mish mash of different types of hose clamps, 4 big fat T bolt type (shit), and a few normal clamps of vairing sizes and brands, but..... only until the 6 constant tension black worm clamps that I ordered from EFI solutions turn up next week Currently the current hose clamps are triggering me hard, LOL Is this the final version, probably not, I really want just 2 silicone pieces, a straight bit of silicone from the filter to the MAF is easy and will happen as soon as I head into Just Jap tomorrow, the problematic part is a 30° silicone bend from the MAF to the TB that I can connect the engine breather from the head, I found that there are bulk head fittings for boat bilge pumps that should work, but until I can get a 30° silicone bend the alloy pipe, and the 11ty thousand hose clamps, are there for the foreseeable future 4 hose clamps are golden, 6 are grudgingly acceptable, the 8 currently holding it all together is just taking the piss    I've also ordered 60 more retaining wall blocks for the front yard, I mis-gonculated the height that was required to get above the base of the Photinia's (red robin's) that are the hedge behind the front fence, currently it is 2 blocks high, and about 1/2 a block short, so going 3 blocks high will be above the base of the red robin's, and allow some room for mulch
×
×
  • Create New...