Code: Alles auswählen
<Files config.php>
Deny from all
</Files>
DirectoryIndex index.php index.htm index.html
RewriteEngine On
# SEO URL [mgutt]
RewriteRule !\.html$ - [L]
RewriteRule ^[a-z0-9-]+-([pt])([0-9]+)\.html$ /viewtopic.php?$1=$2 [L]
RewriteRule ^[a-z0-9-]+-f([0-9]+)\.html$ /viewforum.php?f=$1 [L]
RewriteRule ^[a-z0-9-]+-u([0-9]+)\.html$ /profile.php?mode=viewprofile&u=$1 [L]
RewriteRule ^([a-zA-Z0-9_]+),([^/,]+),([^/,]*)([^/]*\.html)$ $1$4?$2=$3 [QSA,N]
RewriteRule ^[a-z0-9-]+-([pt])([0-9]+),([^/,]+),([^/,]*)([^/]*\.html)$ viewtopic$5?$1=$2&$3=$4 [QSA,N]
RewriteRule ^[a-z0-9-]+-f([0-9]+),([^/,]+),([^/,]*)([^/]*\.html)$ viewforum$4?f=$1&$2=$3 [QSA,N]
RewriteRule ^([a-zA-Z0-9_]+)\.html$ /$1.php [L]
Code: Alles auswählen
<Files config.php>
Deny from all
</Files>
DirectoryIndex index.php index.htm index.html
RewriteEngine On
# SEO URL [mgutt]
RewriteRule !\.html$ - [L]
RewriteRule ^[a-z0-9-]+-([pt])([0-9]+)\.html$ /forum/viewtopic.php?$1=$2 [L]
RewriteRule ^[a-z0-9-]+-f([0-9]+)\.html$ /forum/viewforum.php?f=$1 [L]
RewriteRule ^[a-z0-9-]+-u([0-9]+)\.html$ /forum/profile.php?mode=viewprofile&u=$1 [L]
RewriteRule ^([a-zA-Z0-9_]+),([^/,]+),([^/,]*)([^/]*\.html)$ $1$4?$2=$3 [QSA,N]
RewriteRule ^[a-z0-9-]+-([pt])([0-9]+),([^/,]+),([^/,]*)([^/]*\.html)$ viewtopic$5?$1=$2&$3=$4 [QSA,N]
RewriteRule ^[a-z0-9-]+-f([0-9]+),([^/,]+),([^/,]*)([^/]*\.html)$ viewforum$4?f=$1&$2=$3 [QSA,N]
RewriteRule ^([a-zA-Z0-9_]+)\.html$ /forum/$1.php [L]
Code: Alles auswählen
<Files config.php>
Deny from all
</Files>
DirectoryIndex index.php index.htm index.html
RewriteEngine On
# SEO URL [mgutt]
RewriteRule !\.html$ - [L]
RewriteRule ^forum/[a-z0-9-]+-([pt])([0-9]+)\.html$ /forum/viewtopic.php?$1=$2 [L]
RewriteRule ^forum/[a-z0-9-]+-f([0-9]+)\.html$ /forum/viewforum.php?f=$1 [L]
RewriteRule ^forum/[a-z0-9-]+-u([0-9]+)\.html$ /forum/profile.php?mode=viewprofile&u=$1 [L]
RewriteRule ^forum/([a-zA-Z0-9_]+),([^/,]+),([^/,]*)([^/]*\.html)$ forum/$1$4?$2=$3 [QSA,N]
RewriteRule ^forum/[a-z0-9-]+-([pt])([0-9]+),([^/,]+),([^/,]*)([^/]*\.html)$ forum/viewtopic$5?$1=$2&$3=$4 [QSA,N]
RewriteRule ^forum/[a-z0-9-]+-f([0-9]+),([^/,]+),([^/,]*)([^/]*\.html)$ forum/viewforum$4?f=$1&$2=$3 [QSA,N]
RewriteRule ^forum/([a-zA-Z0-9_]+)\.html$ /forum/$1.php [L]
Code: Alles auswählen
<Files config.php>
Deny from all
</Files>
DirectoryIndex index.php index.htm index.html
RewriteEngine On
# SEO URL [mgutt]
RewriteRule !\.html$ - [L]
RewriteRule ^/forum/[a-z0-9-]+-([pt])([0-9]+)\.html$ /forum/viewtopic.php?$1=$2 [L]
RewriteRule ^/forum/[a-z0-9-]+-f([0-9]+)\.html$ /forum/viewforum.php?f=$1 [L]
RewriteRule ^/forum/[a-z0-9-]+-u([0-9]+)\.html$ /forum/profile.php?mode=viewprofile&u=$1 [L]
RewriteRule ^/forum/([a-zA-Z0-9_]+),([^/,]+),([^/,]*)([^/]*\.html)$ forum/$1$4?$2=$3 [QSA,N]
RewriteRule ^/forum/[a-z0-9-]+-([pt])([0-9]+),([^/,]+),([^/,]*)([^/]*\.html)$ forum/viewtopic$5?$1=$2&$3=$4 [QSA,N]
RewriteRule ^/forum/[a-z0-9-]+-f([0-9]+),([^/,]+),([^/,]*)([^/]*\.html)$ forum/viewforum$4?f=$1&$2=$3 [QSA,N]
RewriteRule ^/forum/([a-zA-Z0-9_]+)\.html$ /forum/$1.php [L]
