Jump to content
  • 0

Making Announcments the default page


JasonO

Question

19 answers to this question

Recommended Posts

  • 0

Put in the root of your whmcs, create a file called .htaccess

 

If that file put

Redirect /index.php http://www.yourwebsite.tld/WHMCS/announcements.php

 

Your site visitors will now be redirected to the announcements page, without being able to see the links from the index page.

Link to comment
Share on other sites

  • 0

Hmm odd.

 

I tried chmod'ing it to 677 and the index page still loads without redirecting.

 

I've not used htaccess files much so I have no idea how they work. I had a little fiddle like adding quotation marks etc to see if that did anything but nothing.

 

The line I have is this:

 

Redirect /index.php http://www.hosting4network.co.uk/whmcs/announcements.php

 

PS ignore the work in progress design, its been a quick job to see what it would look like keeping the website theme we used to have :P

Link to comment
Share on other sites

  • 0

Still loading the index.php file instead of the announcements.

 

I tried removing the full URL so it only left the file name for the announcements.php file and i got a Server Error - so it's definitly loading the .htaccess file. It's just not processing the redirect.

Link to comment
Share on other sites

  • 0

Just as an experiment, can you put in your main website

 rewriteCond %{HTTP_HOST} ^hosting4network\.co\.uk$ [NC]
rewriteRule ^(.*)$ http://www.hosting4network.co.uk/$1 [R=301,L]

 

or

 

 rewriteCond %{HTTP_HOST} ^hosting4network\.co.uk$ [NC]
rewriteRule ^(.*)$ http://www.hosting4network.co.uk/$1 [R=301,L]

 

Not real sure how the \. system works. I want to see if it will redirect your main site to include a www

Link to comment
Share on other sites

  • 0

So you want one of them in my public_html folder (website root) ? in a .htaccess file?

 

Do you have the Apache Mod-Rewrite moduled enabled?

 

I'll just try and find out :)

 

Edit : OK Apache2handler has mod_rewrite as a loaded module.

Link to comment
Share on other sites

  • 0

I don't think it would make a difference, but try

Redirect 301 /index.php http://www.hosting4network.co.uk/whmcs/announcements.php

 

That is very suspect though that it did not do a rewrite to www. The above code is what apache has in it's documentation, it has worked since 1.3.x

 

Do you have a self managed server os is it fully managed? If it is managed, I would contact the datacenter and ask then to have a tech look and see why it will not do a simple redirect.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated