Is rewrite_mod working on free hosting

Status
Not open for further replies.

jeromeolivry94

New Member
Messages
8
Reaction score
0
Points
0
Hello everybody!

I'm creating my website with x10 free hosting but it seems that rewrite_mod does'nt work (404 error).
Does anyone know if it should work or not? And/Or how to make it work (if it's possible).

Thank you very much!

(ps: sorry for the english's faults!)
 

calistoy

Free Support Volunteer
Community Support
Messages
5,602
Reaction score
87
Points
48
Yes, mod_rewrite is already enabled. Make sure that you include RewriteBase / in your .htaccess file.
 

calistoy

Free Support Volunteer
Community Support
Messages
5,602
Reaction score
87
Points
48
It's not the only thing, I said to make sure that you include it.
 

jeromeolivry94

New Member
Messages
8
Reaction score
0
Points
0
Of course there's something else (Rewrite Rule...) but on this line I don't have to write something else?

Is there a problem with my code? I have already 404 errors:


RewriteBase /
Options +FollowSymlinks
RewriteEngine On
RewriteRule ^foo.html$ test.html [L]
 
Last edited:

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Do you actually have a file named test.html in public_html ?
 

jeromeolivry94

New Member
Messages
8
Reaction score
0
Points
0
no, it's like that:
public_html/jerom/test/test.html
and the .htaccess file is in the same folder...
 
Last edited:

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Well, I try http://jerome.olivry.kadored.x10.mx/jerome/test/test.html and it gives a 404 so it either isn't there is something else going on.
 
Last edited:

jeromeolivry94

New Member
Messages
8
Reaction score
0
Points
0
it's jerom/test_rewrite/test.html and not jeromE/test/test.html

---------- Post added at 07:59 AM ---------- Previous post was at 06:54 AM ----------

When i put the files "test.html" and .htaccess in the folder public_html it works... isn't it possible to do this in other folders?

edit: It seems that I have to put my .htaccess file in public_html and write in it the rule with: ^jerom/test_rewrite/foo.html$ jerom/test_rewrite/test.html [L]
 
Last edited:
Status
Not open for further replies.
Top