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
  • #36971



    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 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
    Options -Indexes   
    IndexIgnore *



    Accepted AnswerAnswer

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

    RewriteRule ^login$ /login.php

    This just solved my problem …

    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.