Skip to content
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

.Php error #22

Closed
aslantassmt opened this issue Aug 23, 2017 · 4 comments
Closed

.Php error #22

aslantassmt opened this issue Aug 23, 2017 · 4 comments

Comments

@aslantassmt
Copy link

For example when I try to login I have to write .php. Like this;
I installed files in "public_html" so I write " " to DIR.
http://prntscr.com/gc1n8x
http://prntscr.com/gc1nk8

@aslantassmt
Copy link
Author

I write this things on .htaccess file. The problem partly solved but this time some link are not working.
For example;

https://playerally.com/mvp/profile/Serius?ask=bookmarks
https://playerally.com/mvp/profile/Serius?ask=favourites
https://playerally.com/mvp/profile/Serius?ask=groups

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]

@aslantassmt
Copy link
Author

aslantassmt commented Aug 23, 2017

I fixed my problem myself :D
Just add this to .htaccess.

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
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]
RewriteRule ^([^\.]+)$ $1.php [NC,L]
ErrorDocument 404/mvp/404.php

@aslantassmt
Copy link
Author

Can you share your .htaccess file? There is a problem with other things. @yTakkar

@yTakkar
Copy link
Owner

yTakkar commented Aug 23, 2017

It's already in the repo!!

@yTakkar yTakkar closed this as completed Aug 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants