PDA

View Full Version : Can we to run .htaccess on a file ?


maxicep
Sat 18th Nov '06, 12:50pm
hi,
i cant create this file because of my hosting.

can we to run .htaccess in a .php ?

or what can i do this time ?

Steve Machol
Sat 18th Nov '06, 11:31pm
PHP does not use .htaccess. What are you trying to do exactly, and what kind of a host would not allow you to use .htaccess?

maxicep
Sun 19th Nov '06, 3:40am
PHP does not use .htaccess. What are you trying to do exactly, and what kind of a host would not allow you to use .htaccess?

i want to do mod_rewrite(vbSeo or Zoints Seo) and google sitemap.

both are want to create .htaccess file but my hostin Yahoo do not allow to create this file.

Cant i do rewrite ? :(

mlx
Sun 19th Nov '06, 6:42am
Ask your hosting provider if they are able to setup those rewrite rules for your domain. Otherwise it won't be possible without mod_rewrite and the ability to setup .htaccess files I guess.

maxicep
Sun 19th Nov '06, 7:04am
Ask your hosting provider if they are able to setup those rewrite rules for your domain. Otherwise it won't be possible without mod_rewrite and the ability to setup .htaccess files I guess.

i will ask this question,

but real problem is ccant create .htaccess, how can i to work this file ?

Steve Machol
Sun 19th Nov '06, 12:43pm
Since you can't use htaccess then you need to do as mlx suggested and contact your host to find out if they provide an alternate method of using mod_rewrite.