× Here you can get community support related to ReDJ.

remove .php

  • derekk
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 7 months ago #5579 by derekk
remove .php was created by derekk
Our original site had .php added to every url.
We want to have anyone entering the siteurl.com/page.php to be redirected to siteurl.com/page.
The "page" part of "page.php" could be literally hundreds of different names?

Thank you

Please Log in or Create an account to join the conversation.

More
7 years 7 months ago #5580 by admin
Replied by admin on topic remove .php
Hi,
create a rule as follow:
From URL: \.php$
To URL: {scheme}://{siteurl}{pathrtrim .php}

Kind regards,
Luigi

Please Log in or Create an account to join the conversation.

  • derekk
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 7 months ago #5581 by derekk
Replied by derekk on topic remove .php
Steps to test:
Installed Redj and Sh404sef
Created url in sh4o4 called "making-a-transcript-trestle.php"
In Redj created a rule as follows:
From URL: \.php$
To URL: {scheme}://{siteurl}{pathrtrim .php}

I entered mysite.com/making-a-transcript-trestle.php in a browser and it redirected to mysite.com/making-a-transcript-trestle.

It correctly removed the .php suffix

Are these correct steps to prove it works Luigi?

Thank you

Please Log in or Create an account to join the conversation.

More
7 years 7 months ago #5584 by admin
Replied by admin on topic remove .php
Yes,
except for the presence of sh404SEF...

I mean I know from my experience that ReDJ and sh404SEF can work together, but I don't know how sh404SEF works on the whole process.

So if all works as expected... that's good.

Kind regards,
Luigi

Please Log in or Create an account to join the conversation.

  • derekk
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 7 months ago #5588 by derekk
Replied by derekk on topic remove .php
Thank you excellent product and support Luigi.

Please Log in or Create an account to join the conversation.

More
7 years 7 months ago #5592 by admin
Replied by admin on topic remove .php
Thanks to you for using ReDJ. I really appreciate.

Kind regards,
Luigi

Please Log in or Create an account to join the conversation.

Time to create page: 0.112 seconds