XFileSharing Pro - add custom page - same footer header

Message
Author
isset1988
Posts: 12
Joined: Sep 11, 2015 9:39 am

add custom page - same footer header

#1 Postby isset1988 » Oct 03, 2015 9:06 pm

Hello guys,

I trie create a new static page test.html in the template folder.
I open the link http://mypage.com/?op=test but it redirects me to index.

Is there any option to create a new static page like faq.html?
I need the header and footer same as main.html.

Thank you :)

Steve9e8
Posts: 81
Joined: Jun 19, 2014 11:27 am

#2 Postby Steve9e8 » Oct 05, 2015 3:52 pm

Yes you can ...

Go to ( .htaccess ) in public_html ... open it by any text editor and add the following code in a new line :

Code: Select all

RewriteRule    ^test\.html$            
/cgi-bin/index.cgi?op=page&tmpl=test [L]


The new page should work now ...

isset1988
Posts: 12
Joined: Sep 11, 2015 9:39 am

#3 Postby isset1988 » Oct 05, 2015 4:21 pm

Thank you Steve!

I did that and is working.
Now, when i edit the upload_form.html and other files, and upload them to the server, the page remain as before. I dont see the changes of any document.

Any help?

Steve9e8
Posts: 81
Joined: Jun 19, 2014 11:27 am

#4 Postby Steve9e8 » Oct 05, 2015 4:30 pm

isset1988 wrote:Thank you Steve!

I did that and is working.

you welcome ...

isset1988 wrote:Now, when i edit the upload_form.html and other files, and upload them to the server, the page remain as before. I dont see the changes of any document.

Any help?


which page ?

It's better if you edit the files online, by FTP or Cpanel ... but if you prefer to download them, then editing, then uploading them again, make sure you replace them with the old ones ...

If the change didn't appear ... make sure to clear the cache of your browser then open the filehost again ...

isset1988
Posts: 12
Joined: Sep 11, 2015 9:39 am

#5 Postby isset1988 » Oct 05, 2015 4:35 pm

The test page working on link www.my-page.com/test.html
when i download another html file from template folder and upload/replace this to server, i cant see the changes.
Maybe something goes wrong in my htaccess.

Steve9e8
Posts: 81
Joined: Jun 19, 2014 11:27 am

#6 Postby Steve9e8 » Oct 05, 2015 4:36 pm

If the change didn't appear ... make sure to clear the cache of your browser then open the filehost again ...

If any page open with no errors, so there is no problem with htaccess.

isset1988
Posts: 12
Joined: Sep 11, 2015 9:39 am

#7 Postby isset1988 » Oct 05, 2015 4:41 pm

i make the upload/replace the file via cpanel and now working.
when i upload the file from ftp nothing change in my browser.

Thanks Again!
You are very helpful! :)

Steve9e8
Posts: 81
Joined: Jun 19, 2014 11:27 am

#8 Postby Steve9e8 » Oct 05, 2015 4:47 pm

isset1988 wrote:i make the upload/replace the file via cpanel and now working.
when i upload the file from ftp nothing change in my browser.

Thanks Again!
You are very helpful! :)


That's good ...

FTP is usually better than Cpanel for uploading/downloading files/folders to/from the filehost .... but Cpanel is better for the live editing of pages ...

isset1988
Posts: 12
Joined: Sep 11, 2015 9:39 am

#9 Postby isset1988 » Oct 05, 2015 4:48 pm

Thanks again!!!

Steve9e8
Posts: 81
Joined: Jun 19, 2014 11:27 am

#10 Postby Steve9e8 » Oct 05, 2015 4:50 pm

isset1988 wrote:Thanks again!!!


you welcome


Return to “XFileSharing Pro”