Forum Moderators: phranque
RewriteEngine On
Options +FollowSymLinks
RewriteRule ^(.*)/ /index.php?act=forum&id=$1
ErrorDocument 404 /index.php?act=404
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
but my style sheet doesnt work if i use the new link and the table borders dont show up how do i fix this
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
it is supposed to get rid of the .php file extension
how do i make it so that if you put like mysite/1/something it gives a 404 error
RewriteEngine On
Options +FollowSymLinks
#try to hide the .php extension but does not work
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
# force www. in all requests
RewriteCond %{HTTP_HOST} ^the-forum.net78\.net [NC]
RewriteRule ^(.*)$ http://www.the-forum.net78.net/$1 [L,R=301]
#the 404 error page
ErrorDocument 404 /index.php?act=404
#the members profile page
RewriteRule ^members/(.*).html /index.php?act=profile&id=$1 [L]
#view the forum sub directories that are in the main directory selected
RewriteRule ^view/(.*)/ /index.php?act=view&id=$1 [L]
#makes it so the pagination in the topics page works and is google friendly
RewriteRule ^(.*)/(.*)-(.*)-page-(.*).html /index.php?act=topic&forum=$1&id=$2&page=$4 [L]
#the topics pages
RewriteRule ^(.*)/(.*)-(.*).html /index.php?act=topic&forum=$1&id=$2 [L]
#the forum sub directory pages
RewriteRule ^(.*)/ /index.php?act=forum&id=$1 [L]
how do i fix this so they all work in no matter what order they are in?