howto: Server - using mod_rewrite for redirects rev 24 nov 2018 > info | example | docs ....................................................... info: * How to make redirects through the cPanel; https://www.a2hosting.com/kb/cpanel/cpanel-domain-features/redirects * How to make redirects in the .htaccess file; https://www.a2hosting.com/kb/developer-corner/apache-web-server/rewriting-urls-with-the-mod-rewrite-module There's sample code there. * You can also do complex replace code. see docs below. ....................................................... example .htaccess to do this Example: for changing ASP urls to wordpress, you might have lines like this; RewriteEngine on RewriteRule ^news.aspx$ /news (You only need to have "Rewrite Engine on" one, at the beginning.) ....................................................... documentation: * The rewrite rules: https://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewriterule * Everything you would ever want to know about mod_rewrite! https://httpd.apache.org/docs/current/mod/mod_rewrite.html * Apache: The Definitive Guide (O'Reilly) https://docstore.mik.ua/orelly/linux/apache/ _______________________________________________________ begin 23 nov 2018 -- 0 --