• Hello,

    I am new in wordpress.

    I have a page: /?my_ical&id=3596 which created an Ical file.

    But whoever needs to consume it wants to see in the URL a “.ical”

    What should I do for this?

    I was thinking of redirecting a URL like /?my_ical&id=3596.ical to /?my_ical&id=3596

    I can not understand the Rewriting URL of .htAccess or WordPress.

    Can someone help me?

    Thank you

Viewing 1 replies (of 1 total)
  • Hello @tobleronne

    Please paste the below code at the starting of your .htaccess.

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^([^\.]+)$ $1.ical [NC,L]

    See if it resolves the problem.

    Thank You

Viewing 1 replies (of 1 total)
  • The topic ‘URL redirection’ is closed to new replies.