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
  • Infrastructure

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
# .htaccess# Apache
Previous Post htaccess subdomain creation
Next Post Wordpress - make all images inside a post links

Recently updated

  • Another rebuild for my own website
  • Zend Certification Obtained
  • Points of interest
  • A small hosting server with Virtualmin and Debian 12
  • A simple way to put WordPress on Debian/Ubuntu

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 (15) Infrastructure (71) Programming (165) Useful tools (46)

draghici.net Β© 2006 - 2026 - Most of the rights reserved