XFileSharing Pro - How to add a page?

Message
Author
cheater1
Posts: 5
Joined: Jun 22, 2011 2:26 am

How to add a page?

#1 Postby cheater1 » Oct 05, 2012 1:19 am

I want to add another page. But when I placed the link into the main.html it didn't work.

I did this:

<li><a href="<TMPL_VAR site_url>/?op=new_page">New_Pag</a></li>

I uplaoded new_page.html to Templates folder.When I click on this link it just shows my website and the upload page.

Anyone can show me how to add a new page?

kunc86
Posts: 20
Joined: Jul 26, 2010 5:06 am

#2 Postby kunc86 » Oct 05, 2012 4:29 am

hello,

first you need to put

put any .html pages in Templates/Pages/LANGUAGE/ folder and access them via URL: http://YOURSITE.com/pages/NEWPAGE.html where NEWPAGE.html is your file.


if you want to redirect http://YOURSITE.com/NEWPAGE.html

go to .htaccess in main server

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

cheater1
Posts: 5
Joined: Jun 22, 2011 2:26 am

#3 Postby cheater1 » Oct 05, 2012 11:57 am

Thanks will try this.

Edit: Works perfectly thanks for the guide.
kunc86 wrote:hello,

first you need to put

put any .html pages in Templates/Pages/LANGUAGE/ folder and access them via URL: http://YOURSITE.com/pages/NEWPAGE.html where NEWPAGE.html is your file.


if you want to redirect http://YOURSITE.com/NEWPAGE.html

go to .htaccess in main server

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