Solved

Redirect URL in Apache

Posted on 2015-02-05
1
46 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Python variable _ manually assigned 9 86
Tomcat on Windows.  URL with {curly braces} fails. 1 56
how to install java on RHEL image on EC2 4 28
ifconfig 4 46
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…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

809 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