Author Topic: How i can call instead *.htm *.php  (Read 5898 times)

0 Members and 1 Guest are viewing this topic.

Offline batu544

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Free Celebrity wallpapers
How i can call instead *.htm *.php
« on: January 14, 2011, 07:17:21 PM »
Hi,
     I just created one custom page by using this mod.. but for me its not working properly..

My  .php file is displaying all the things correctly.. but when I am using .htm file, no template variables are working except {clickstream} ..


Is there anything I need to mentions..

Thanks
batu544


Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: How i can call instead *.htm *.php
« Reply #1 on: January 14, 2011, 07:35:13 PM »
The template tags must be registered in .php file, look at the part "EXAMPLE CUSTOM PHP CODE"
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline batu544

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Free Celebrity wallpapers
Re: How i can call instead *.htm *.php
« Reply #2 on: January 29, 2011, 04:37:54 PM »
Hi,
    I just created one contact.php file..   but here also the same issue..


registered variables in contact.php file only works when I am accessing this the php file .. like   www.bhwallpapers.com/contact.php   


but when I am accessing the same contact page like   www.bhwallpapers.com/contact.htm , then no contact.php variables are working...


If anyone can look into it.. it will be really great..

Thank you
batu544


Offline batu544

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Free Celebrity wallpapers
Re: How i can call instead *.htm *.php
« Reply #4 on: January 29, 2011, 08:27:04 PM »
Hi Rembrandt -
                        Yes, I have installed that mod in my website and I know it will work if I will add following line in my .htaccess file. but I thought may be there would be something else I am missing so I need to add this line in my .htaccess file.. Also, do you want to say, If I would not have installed this mod then both .htm and .php extension pages return same result ??



Code: [Select]
RewriteRule ^contact.htm$ contact.php


Thank you.
batu544

Rembrandt

  • Guest
Re: How i can call instead *.htm *.php
« Reply #5 on: January 29, 2011, 09:50:15 PM »

in 4images galerie system you can not call  "domain.xx/name.html  only domain.xx/name.php.

but maybe @vano has an idea.

mfg Andi
« Last Edit: January 30, 2011, 06:31:02 AM by Rembrandt »

Offline V@nо

  • Addicted member
  • ******
  • Posts: 1.223
    • View Profile
Re: How i can call instead *.htm *.php
« Reply #6 on: January 29, 2011, 11:58:07 PM »
Code: [Select]
RewriteRule ^contact.htm$ contact.php

That line doesn't include url query, perhaps that is the problem?

Code: [Select]
RewriteRule ^contact.htm$ contact.php?%{QUERY_STRING}
Your first three "must do" before you ask a question:
If I asked you to PM me, I meant PM to my primary account, this account doesn't accept PMs.