.HTACCESS sammensættes..
Jeg har to .HTACCESS filer som jeg skal have sammensat:De ser sådan ud:
fil1:
RewriteEngine On
RewriteRule index\.html index.php [NC]
RewriteRule index_offer\.html index.php?vars=offer [NC]
RewriteRule index_wanted\.html index.php?vars=wanted [NC]
RewriteRule index_all\.html index.php?vars=all [NC]
RewriteRule kategorier\-(.*) index.php?vars=/categories-$1 [NC]
RewriteRule annoncer\-(.*)\/ classified.php?vars=ad_details-$1 [NC]
RewriteRule extra_category\/(.*) category.php?action=$1 [NC]
fil2:
# for discussion board
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^cat/([0-9]+)/(.+)$ forum/index.php?show=cat&id=$1&title=$2 [L]
RewriteRule ^([0-9]+)/(.+)$ forum/index.php?show=post&id=$1&title=$2 [L]
RewriteRule ^(index([0-9]+).htm)$ forum/index.php?show=sitemap&id=$2 [L]
</IfModule>
Jeg har prøvet bare at kopiere fil 2 over i fil 1 men så virker det desværre ikke :/
Mange tak