I have a my URL as : www.domain.com/controller/login.php
And i want to make it look it like: www.domain.com/jobtracker

Please help, i have researched lots of links as i am new to this topic, but did not found appropriate solution yet.. It gives me 500 internal server error

My .htacess file looks like..

RewriteEngine On
RewriteRule ^jobtracker /?$ controller/login.php

Member Avatar for LastMitch

@disha2612_1

Please help, i have researched lots of links as i am new to this topic, but did not found appropriate solution yet.. It gives me 500 internal server error

You can try to used this (it's a Mod Generator, it creates URL Rewrite):

http://www.generateit.net/mod-rewrite/

hey disha2612_1,
did you try to remove the empty space before "/?$" :)

you have
RewriteRule ^jobtracker /?$ controller/login.php
and it should be
RewriteRule ^jobtracker/?$ controller/login.php
----------------------^

that is the reason of your 500 error ;)
cheers

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.