I am trying to setup a proper .htaccess file, and what I mean by this is I am trying to setup the .htaccess to do:
- Have
http://website.com/members.phpread likehttp://website.com/members/ - Have
http://website.com/index.phpto read likehttp://website.comwith or without / - Set default recommended image/website file expire dates
- Gzip website
… and anything else that is recommended.
edit: this is what I currently have:
Options +FollowSymlinks
RewriteEngine On
RewriteRule ^users/([0-9]+)$ profile.php?id=$1 [L]
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
# BEGIN Rewrite
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END Rewrite
Add this to your .htaccess file to form the website.com/user sort of links:
And also for better explanations follow the User Profile videos under Register and Login series by PHPAcademy
User Profile Link Formation
There are other parts too. You can see them yourself.
And about your other queries, others will help you out because I can’t help you completely.