Solved

Redirect URL in Apache

Posted on 2015-02-05
1
43 Views
Last Modified: 2015-12-08
I have am running a website with a URL of say www.abc123.com/books.  How do I configure Apache to redirect www.abc123.com to www.abc123.com/books?
0
Comment
Question by:shannon_adams
1 Comment
 
LVL 1

Accepted Solution

by:
Sida Say earned 500 total points
Comment Utility
You can use  .htaccess file an Apache server configuration file.
.htaccess:
Redirect 301 / http://www.abc123.com/books/

Open in new window


If you uploaded .htaccess file to the old-page.html directory and the redirection does not work, it usually means that the .htaccess files are not enabled in the Apache server configuration file httpd.conf.

httpd.conf:
<Directory /srv/www/rapidtables.com/public_html/web/dev/redirect>
   AllowOverride All
</Directory>

Open in new window

0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now