4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: batu544 on January 14, 2011, 07:17:21 PM

Title: How i can call instead *.htm *.php
Post by: batu544 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

Title: Re: How i can call instead *.htm *.php
Post by: V@no 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"
Title: Re: How i can call instead *.htm *.php
Post by: batu544 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
Title: Re: How i can call instead *.htm *.php
Post by: Rembrandt on January 29, 2011, 04:54:12 PM
...
the same http://www.bhwallpapers.com/top.htm
have you the mod http://www.4homepages.de/forum/index.php?topic=6729.msg29453#msg29453
I think it is...
Title: Re: How i can call instead *.htm *.php
Post by: batu544 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
Title: Re: How i can call instead *.htm *.php
Post by: Rembrandt 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
Title: Re: How i can call instead *.htm *.php
Post by: V@nо 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}