New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please Help Rewrite On Nginx #60
Comments
Have not tested this out but this should work: location / { location /profile { location /groups { location /view_post { error_page 404 /Faiyaz/Instagram/404.php; deny all; location ~ .php$ { |
My Apache rewrite rules for this don't work |
`RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#For removing extension as Options +MultiViews not working with RewriteRule
RewriteRule ^([a-zA-Z0-9_]+)$ $1.php [QSA,NC,L]
RewriteRule ^profile/([a-zA-Z0-9._@-]+)$ profile.php?u=$1 [QSA,NC,L]
RewriteRule ^profile/ profile.php [QSA,NC,L]
RewriteRule ^groups/([0-9]+)$ groups.php?grp=$1 [QSA,NC,L]
RewriteRule ^groups/ groups.php [QSA,NC,L]
RewriteRule ^view_post/([a-zA-Z0-9]+)$ view_post.php?post=$1 [QSA,NC,L]
ErrorDocument 404 /Faiyaz/Instagram/404.php
#DirectoryIndex Options +Indexes
<FilesMatch ".(htaccess)">
order allow,deny
deny from all
#Options +MultiViews
IndexIgnore *
`
The text was updated successfully, but these errors were encountered: