2. Also what do I have to do to stop the double login issues, with http ://sitename and http ://www.sitename?
Redirect the first to the second using .htaccess or changing your DNS records
http://www.nhatban.net/info/a0021.html
2. Also what do I have to do to stop the double login issues, with http ://sitename and http ://www.sitename?
Options -Indexes
<FilesMatch "(mainfile|header|footer).php">
Order allow,deny
Deny from all
</FilesMatch>
Order allow,deny
Deny from all
Options -Indexes
Order Deny,Allow
Deny from all
<FilesMatch ".(js|css)$">
Allow from all
</FilesMatch>
Order Deny,Allow
Deny from all
<FilesMatch ".(gif|jpe?g|png|js|css|swf)$">
Allow from all
</FilesMatch>
Order Deny,Allow
Deny from all
<FilesMatch ".(gif|jpe?g|png)$">
Allow from all
</FilesMatch>
thanks for sharing, but in the mainfile.php i assume the <?php line was a typo right ?
atv your reqrite code is missing something
its written if the person sepcifically types in the words
news
sns
stuff
and so on
and that will redirect their browser to the correct pages
however youll need to add this to the end flag
chage this [L]
to this [R=301,L]
this way it doesnt matter if the person types in upper / lower / or mixed case words.
RewriteEngine on
RewriteRule ^news/(.*)$ /modules/Xigg/$1 [L]
RewriteRule ^sns/(.*)$ /modules/xsns/$1 [L]
RewriteRule ^stuffs/(.*)$ /modules/d3downloads/$1 [L]
RewriteRule ^links/(.*)$ /modules/mylinks/$1 [L]
RewriteRule ^main.css$ /xoops.css [L]
RewriteRule ^include/main.js$ /include/xoops.js [L]
<?php
// Available for download shortly
// Sorry, I deleted the codes because
// it changed when pasting here