• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

mod_rewrite

M

Michael@

Guest
Hi,
i made an .htaccess in /httpdocs with this:


DirectoryIndex news.php

ErrorDocument 404 /404.php

RewriteEngine On
Options FollowSymLinks
Options +ExecCGI
RewriteBase /

RewriteCond %{HTTP_HOST} !^www.wallpaper-area.de$
RewriteRule ^(.*)$ http://www.wallpaper-area.de/$0 [redirect]

RewriteRule ^wa-([1234567890]*)\.php$ kategorie.php?KategorieNr=$1 [nocase,last]
RewriteRule ^wa-([1234567890]*)\.([1234567890]*)\.php$ kategorie.php?KategorieNr=$1&Start=$2 [nocase,last]
RewriteRule ^wa-([1234567890]*)-([1234567890]*)\.php$ galerie.php?KategorieNr=$1&GalerieNr=$2 [nocase,last]
RewriteRule ^wa-([1234567890]*)-([1234567890]*)\.([1234567890]*)\.php$ galerie.php?KategorieNr=$1&GalerieNr=$2&Start=$3 [nocase,last]
RewriteRule ^wa-([1234567890]*)-([1234567890]*)-([1234567890]*)-0\.php$ wallpaper_pre.php?KategorieNr=$1&GalerieNr=$2&WallpaperNr=$3 [nocase,last]
RewriteRule ^wa-([1234567890]*)-([1234567890]*)-([1234567890]*)\.php$ wallpaper.php?KategorieNr=$1&GalerieNr=$2&WallpaperNr=$3 [nocase,last]


But it do not work, can you help me what i did wrong?

Thanks

Michael
 
Back
Top