ConradJones Posted May 20, 2013 Posted May 20, 2013 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
garethm Posted May 20, 2013 Posted May 20, 2013 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
shelle Posted May 22, 2013 Posted May 22, 2013 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
ConradJones Posted May 28, 2013 Author Posted May 28, 2013 hi thanks guys, i had the ht access the httpd.conf file needed htaccess files enabled.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now