Skip to content
No results
  • All articles
  • Showcase
  • About
  • Contact
draghici.net
  • All articles
  • Showcase
  • About
  • Contact
draghici.net

Redirect to a new page using .htaccess files

  • Cristi DraghiciCristi Draghici
  • August 18, 2014
  • Programming

The code is pretty simple. Let’s see it! 🙂

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^(.*)$ http://blog.draghici.net/$1 [R=301,L]
</IfModule>Code language: HTML, XML (xml)
Tags
# Apache
Previous Post htaccess subdomain creation
Next Post Wordpress - make all images inside a post links

Recently updated

  • Host old apps in containers with Debian 12
  • Setting up my new Raspberry Pi
  • How to test your frontend applications
  • Family tree – Genealogy application with React
  • Modernizing the internals of an old notes taking app

A quick note

I post here articles that I found interesting, solutions to problems I have encountered and last but not least, display information about my projects and achievements.

Categories

Everything else (85) Programming (177) Useful tools (23)

draghici.net © 2006 - 2025 - Most of the rights reserved