XFileSharing Pro - Xfilesharingpro interfering with other .html files?

Message
Author
awaisuk
Posts: 39
Joined: May 25, 2009 4:08 am

Xfilesharingpro interfering with other .html files?

#1 Postby awaisuk » Nov 27, 2009 3:28 pm

Xfilesharingpro interfering with other .html files?

I have uploaded a separate file called test.html in my site. When i try to access it, it gives me a message saying:

FILE NOT FOUND

Go back to main page (Which is my filehosting site homepage)

How to fix this?

I want to view test.html separately.

komi
Posts: 161
Joined: Nov 27, 2009 12:41 pm

#2 Postby komi » Nov 27, 2009 3:41 pm

thats because of mod_rewrite
place the file in /cgi-bin/Templates and you can view the page at /name.html

awaisuk
Posts: 39
Joined: May 25, 2009 4:08 am

#3 Postby awaisuk » Nov 27, 2009 4:26 pm

It still does not work. I still get the same error.

komi
Posts: 161
Joined: Nov 27, 2009 12:41 pm

#4 Postby komi » Nov 27, 2009 4:31 pm

try viewing it with /pages/name.html

if it doesnt work try placing it in /cgi-bin/Templates/Pages/

awaisuk
Posts: 39
Joined: May 25, 2009 4:08 am

#5 Postby awaisuk » Nov 27, 2009 4:41 pm

I dont have pages folder. I am on 1.5

Thanks.

komi
Posts: 161
Joined: Nov 27, 2009 12:41 pm

#6 Postby komi » Nov 27, 2009 4:52 pm

Create /cgi-bin/Templates/Pages folder and place your file in there.

Open your first .htaccess file (not /cgi-bin/.htaccess !) and add:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^pages/([a-z0-9\-\_]+).html /cgi-bin/index.cgi?op=page&tmpl=$1$2 [L]

That should work.

awaisuk
Posts: 39
Joined: May 25, 2009 4:08 am

#7 Postby awaisuk » Nov 27, 2009 4:59 pm

Still does not work.

I posted it in pages/test.html

And also edited the main .htaccess but does not work.

Thanks.

komi
Posts: 161
Joined: Nov 27, 2009 12:41 pm

#8 Postby komi » Nov 27, 2009 5:02 pm

Do you have msn, icq or anything?

awaisuk
Posts: 39
Joined: May 25, 2009 4:08 am

#9 Postby awaisuk » Nov 27, 2009 5:03 pm

Sorry, I am at work right now so only can talk through forums.

Please tell me how I can make this work?

Thanks alot.

komi
Posts: 161
Joined: Nov 27, 2009 12:41 pm

#10 Postby komi » Nov 27, 2009 5:09 pm

I'm sorry, I have no idea cause it works fine for me.

awaisuk
Posts: 39
Joined: May 25, 2009 4:08 am

#11 Postby awaisuk » Nov 27, 2009 6:14 pm

Hey,

You can add me on AIM: awaisuk

I am online now.

Thanks.

awaisuk
Posts: 39
Joined: May 25, 2009 4:08 am

#12 Postby awaisuk » Nov 29, 2009 7:21 pm

I still need help...

admin
Site Admin
Posts: 1839
Joined: Mar 22, 2006 12:32 pm

#13 Postby admin » Dec 03, 2009 1:34 pm

Sorry for delayed reply.

You should place your custom page into:

/cgi-bin/Templates/Pages/<language>/

for example:

/cgi-bin/Templates/Pages/english/custom.html

will be accessible as

www.yoursite.com/custom.html