+ Post New Thread
Results 1 to 4 of 4
Internet Related/Filtering/Firewall Thread, APache redirect in Technical; Hi When some one access the root of my server via http i need to redirect them to a sub ...
  1. #1

    Join Date
    Mar 2013
    Location
    west sussex
    Posts
    519
    Thank Post
    74
    Thanked 26 Times in 26 Posts
    Rep Power
    15

    APache redirect

    Hi

    When some one access the root of my server via http i need to redirect them to a sub url

    so they access :
    someserver.somedomain.com

    i need it to redirect to:

    someserver.somedomain.com/mywebapp/index.php


    apache2 running on suse 12.3

  2. #2

    Join Date
    Feb 2012
    Location
    London, North Yorkshire
    Posts
    75
    Thank Post
    4
    Thanked 10 Times in 10 Posts
    Rep Power
    8
    You need to create a .htaccess file in the root of the server, with the following:

    Redirect 301 /index.php http://someserver.somedomain.com/mywebapp/index.php


  3. #3
    shelle's Avatar
    Join Date
    May 2013
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Yeah, this file .htaccess is one powerful file, can almost do everything by him.. But is there a chance to put some lines of code to prevent spammers and hackers?

    Thanks

  4. #4

    Join Date
    Mar 2013
    Location
    west sussex
    Posts
    519
    Thank Post
    74
    Thanked 26 Times in 26 Posts
    Rep Power
    15
    hi thanks guys,
    i had the ht access the httpd.conf file needed htaccess files enabled.

SHARE:
+ Post New Thread

Similar Threads

  1. redirected startmenus
    By browolf in forum Windows
    Replies: 23
    Last Post: 23rd January 2006, 09:12 PM
  2. Folder redirection no desktop??
    By mullet_man in forum Wireless Networks
    Replies: 4
    Last Post: 6th December 2005, 10:34 AM
  3. Quick question about redirecting folders
    By MikeR in forum Windows
    Replies: 30
    Last Post: 3rd November 2005, 12:30 PM
  4. Replies: 8
    Last Post: 2nd November 2005, 12:25 PM
  5. Redirecting Internet Explorer Favourites?
    By Thomas in forum Windows
    Replies: 5
    Last Post: 12th October 2005, 12:02 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •