Htaccess [SOLVED]: .htaccess Rewrite Rule Error

Htaccess [SOLVED]: .htaccess Rewrite Rule Error

Home Forums htaccess Htaccess [SOLVED]: .htaccess Rewrite Rule Error

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #36971

    Anonymous

    QuestionQuestion

    I am having error in the files.
    This is my .htaccess file.
    Redirecting error is mainly that it is showing a 404 error when I click login button then it redirects me to mydomain.com/login which shows me a 404 error as in the file …

    Options +FollowSymLinks -MultiViews
    ErrorDocument 404 /warning/notfound
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)/$ /$1 [L,R=301]
    RewriteRule ^login$ login.php
    </IfModule>
    Options -Indexes   
    IndexIgnore *
    

    #36972

    Anonymous

    Accepted AnswerAnswer

    Okay Now I have the answer actually there should be a slash here ..

    RewriteRule ^login$ /login.php
    

    This just solved my problem …

    Source: https://stackoverflow.com/questions/48036592/htaccess-rewrite-rule-error
    Author: Vasu Grover
    Creative Commons License
    This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.