W3Ask











Linux administration
#ad
Linux programming
#ad
How Linux works
#ad
Linux Bible
#ad
Linux command line
#ad
Linux pocket guide
#ad
Linux Basics for Hackers
#ad


HOME  >  SOFTWARE  >  LINUX

How to enable rewrite mode with a Debian server



The rewrite mode allows you to rewrite the URLs of a website to make it easier for the user to read. It also allows users to better understand the purpose of the article to which the link redirects. In particular when this link is posted on a ticket present in a social network, or in the results of a search engine.

Instead of having a number that refers to an article in its URL, we will have the main keywords present in the title of this article.

To activate this mode, here are the lines that must be entered in the SSH administration interface:

cat /etc/apache2/mods-available/rewrite.load
LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so
sudo a2enmod rewrite
ls -al /etc/apache2/mods-enabled/rewrite.load

You must then open the default file:

sudo nano /etc/apache2/sites-available/000-default.conf

Replace each of the following lines:

AllowOverride None

By this line:

AllowOverride All

And finally, we restart Apache2:

sudo service apache2 restart


Note: Commissions may be earned from the links above.


This page contains references to products from one or more of our advertisers. We may receive compensation when you click on links to those products. For an explanation of our advertising policy, please visit this page.









Related posts:


How to enable ipv6 on a Debian server
https://w3ask.com/enable-ipv6-debian-server/
You feel may be limited with the ipv4 protocol and now want to activate ipv6, in order to have more complex IPs. The activation of ipv6 takes ...
How to update the linux distribution of a Debian server
https://w3ask.com/update-linux-distribution-debian-server/
Access to the server through SSH (PuTTY), enter your user (root) and your password (given by the hosting service provider) : Update and upgrade ...
How to setup Apache2 on a Debian server
https://w3ask.com/setup-apache2-debian-server/
Here is how to install Apache2 easily and fast if you want an alternative to nginx, and then add website conf files for example. Setup Apache ...
How to install MySQL on a Debian server
https://w3ask.com/install-mysql-debian-server/
MySQL can manage databases, which is useful if you want to organize the information of your company, a hospital. Or simply create a site in ...
How to install PHP on a Debian server
https://w3ask.com/install-php-debian-server/
The PHP application will allow us to build a dynamic website with the PHP language. You can connect to a database to display web pages with ...








Linux pocket guide
#ad


Linux Basics for Hackers
#ad


Linux command line
#ad


Linux administration
#ad


Linux Bible
#ad


Linux programming
#ad


How Linux works
#ad





Languages

  • English
  • French
  • German
  • Italian
  • Dutch
  • Portuguese
  • Spanish

Know us

  • About
  • Contact
  • Categories list

Privacy

  • Privacy & Cookie Policy
  • Advertising policy
W3Ask © 2023. All rights reserved.
Disclaimer:

When you click on links to various merchants on this site and make a purchase, this can result in this site earning a commission. Affiliate programs and affiliations include, but are not limited to, the eBay Partner Network.

As an Amazon Associate I earn from qualifying purchases.

This page includes affiliate links for which the administrator of W3Ask may earn a commission at no extra cost to you should you make a purchase. These links are indicated using the hashtag #ad.


Information:

We do not assume any responsibility for the data displayed on our website. Please use at your own risk. Some or all of this data may be out of date or incomplete, please refer to the technical page on the respective manufacturer's website to find the latest up-to-date information regarding the specifics of a product.


Trading System Forex GadgetVersus GadgetVersus France