Solved

Redirect URL in Apache

Posted on 2015-02-05
1
47 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
ID: 40592769
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
expectj telnet failing 5 45
AWS Central Authentication 1 87
Cpanel file manager 8 41
Migrating a Linux server to VMware 3 56
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

856 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