.htaccess i changed it now I want to change it back. Doesn't work.

I changed .htaccess to let it redirect to another website. That worked. I used :

RewriteCond %{HTTP_HOST} ^example.com [NC,OR]

RewriteCond %{HTTP_HOST} ^www.example.com [NC]

RewriteRule ^(.*)$ http://example.net/$1 [L,R=301,NC]

now it is refering to the new website. Now I want to set it back. No success. It keeps on sending me to the new website. Somehow Apache holds that reference and doesn’t get to the new changes, where I change the thing back.

My .htaccess file looks like this:

RewriteEngine On

RewriteBase /

RewriteRule ^index.php$ – [L]

# add a trailing slash to /wp-admin

RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

RewriteCond %{HTTP_HOST} ^soedev.com [NC,OR]

RewriteCond %{HTTP_HOST} ^www.soedev.com [NC]

RewriteRule ^(.*)$ http://soedev.com/$1 [L,R=301,NC]

RewriteCond %{REQUEST_FILENAME} -f [OR]

RewriteCond %{REQUEST_FILENAME} -d

RewriteRule ^ – [L]

RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]

RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]

RewriteRule . index.php [L]

I want to set it back to soedev.com. It is now soedemo.com

I learned that it is not helpfull to hae backups in your website if you can’t get in.

So I need to change the redirect for apache.