Forum Moderators: phranque
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
RewriteRule ^([A-Z0-9_-]+)?$ topic.php?Topic=$1 [NC,L] RewriteRule ^/index.php - [L,I] [I] was making the server sulk :) RewriteCond %{THE_REQUEST} ^[A-Z]+\ /([^/]+/)*index\.php[?]? [NC]
RewriteRule ^index\.php$ http://www.example.com/ [NC,R=301,L] $Pagename = basename ( $_SERVER['PHP_SELF'] ) ;
echo $Pagename; RewriteCond %{THE_REQUEST} ^index\.php [NC]
RewriteRule ^index\.php http://www.example.com/ [NC,R=301,L] Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example\.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
# ### Testing to get the index.php to show when using the domain root only and not the example.com/index.php
#RewriteRule ^index\.php - [NC,R=301,L]
#RewriteRule ^index\.php$ http://www.example.com/ [NC,R=301,L]
#RewriteRule ^index\.php http://www.example.com/ [NC,R=301,L]
RewriteRule ^([A-Z0-9_-]+)?$ topic.php?Topic=$1 [NC,L]