Chris
Chris

Reputation: 448

Can you rewrite an already written Joomla SEF url through .htaccess?

I have a Joomla site with SEF turned on.

The login page of my site is www.example.com/login

A third party requires I have the page URL be: www.example.com/memberlogin.cfm

I tried to use:

RewriteRule ^(/golferlogin.cfm)?$ login [L]

It wont work, makes the page come up with a Error 500...

Anyone have any ideas for a fix to this?

Upvotes: 2

Views: 129

Answers (1)

Kamil Šrot
Kamil Šrot

Reputation: 2221

Try tp place this in root folder .htaccess:

 RewriteEngine On
 RewriteRUle ^golferlogin\.cfm$ /login [L]

The above will process requests to /golferlogin.cfm in the same way as requests to /login. Basically there is extra slash / in your regular expression.

Upvotes: 1

Related Questions