Jump to content

Weiterleitung?


Recommended Posts

Posted (edited)

Super, vielen Dank.

An die .htaccess habe ich gar nicht gedacht, da ich fast alles über Module ab gewickelt hatte.

 

Hallo Leute,

wie leite ich das Frontend auf eine andere Webseite weiter so dass das Backend auf der Seite bleibt, damit ich die xxx/adminTRS/index.php?controller=AdminLogin&token=FDS

noch weiterhin aufgerufen werden können zwecks Daten Übertragung auf die neue Webseite?

 

VG R.

Edited by ra1000 (see edit history)
Link to comment
Share on other sites

Posted (edited)
# Weiterleitung des Frontends, aber Admin-Bereich ausschließen
RewriteEngine On

# Admin-Zugriff erlauben
RewriteCond %{REQUEST_URI} !^/adminTRS [NC]

# Alles andere zum neuen Shop weiterleiten
RewriteCond %{REQUEST_URI} !\.(jpg|jpeg|png|gif|css|js|ico|svg|woff|woff2|ttf|eot)$ [NC]
RewriteRule ^(.*)$ https://www.neueseite.de/$1 [R=301,L]

Replace /adminTRS with the actual name of your admin folder.
Replace https://www.neueseite.de/ with the URL of your new shop.

 

This means:

All visitor traffic redirected to the new site.

Access to /adminTRS/index.php remains intact.

Edited by El Patron (see edit history)
  • Thanks 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...