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

Error: The requested URL was not found on this server #11

Open
raajkhurnaa opened this issue Jun 18, 2024 · 2 comments
Open

Error: The requested URL was not found on this server #11

raajkhurnaa opened this issue Jun 18, 2024 · 2 comments

Comments

@raajkhurnaa
Copy link

URL: http://localhost/lodge/loginMe
Method (from login template): post
Request Shown method: get

Change method post to get though showing

Showing error:

Not Found
The requested URL was not found on this server.

Apache/2.4.52 (Ubuntu) Server at localhost Port 80

@kishor10d
Copy link
Owner

@raajkhurnaa : Check if you have .htaccess file on your project root i.e. lodge/.htaccess. If it is not availble then just create the .htaccess file and paste this code inside it.

RewriteEngine On
RewriteBase /samaj/

RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]

@raajkhurnaa
Copy link
Author

Well thank you,
Working .htaccess for me is:

DirectoryIndex index.php
RewriteEngine on

#RewriteCond $1 !^(index.php|(.).swf|forums|images|css|downloads|jquery|js|robots.txt|favicon.ico)
RewriteCond $1 !^(index.php)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.
)$ ./index.php?$1 [L,QSA]

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