Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.
 

"Pretty" URLs


#1

Is there a way to configure TestRail to be accessible via (and in turn itself use) pretty URLs?

I.e. I’d prefer having URLs like:
http://example.com/testrail/projects/overview/1
instead of:
http://example.com/testrail/index.php?/projects/overview/1

I know I can use Alias/mod_rewrite to get TestRail to respond to that URL, but TestRail still generates URLs containing the index.php? part.

Thanks


#2

Hello Clenz,

Thanks for your message. we don’t currently support pretty URLs for TestRail. I understand that pretty URLs are useful for publicly accessible websites and applications and we would likely already support this if TestRail were a public web application or similar; but as TestRail is usually used internally, our priority was to make the URL handling more robust for different environments and situations. That said, we will consider adding this in a future update as I understand that this can be useful.

If you are mainly interested in pretty URLs to make the links to TestRail shorter, you could also add redirects via mod_rewrite so you could link to:

http://example.com/testrail/P1

with a redirect to:

http://example.com/testrail/index.php?/projects/overview/1

I hope this helps.

Thanks,
Dennis