Help - Search - Members - Calendar
Full Version: htaccess on subdomains
The Planet Forums > Control Panels > cPanel/WHM
ElGuiz
Hi there,

i have 2 .htaccess files, one running on the root public_html, and the other running on one subdomain created with cpanel.

the thing is that i cant get the RewriteRule to work on subdomain

this works perfect on the root path:

RewriteEngine On
RewriteRule ^msn/([^/]+)-([^/]+)-([^/]+)\.html$ /categorias.php?categoria=$2&pagina=$3&cattitulo=$1 [L]

but in the subdomain, its unable to find the categorias.php script
i have tried all the ways, complete path like

/home/sitex/www/subdomain/categorias.php
/home/sitex/public_html/subdomain/categorias.php
categorias.php
./categorias.php

but none of those are working.

someone have any clue of the correct path to catch the script?

Thanks,
Hernan.
thedude
QUOTE (ElGuiz @ Jan 17 2008, 11:04 AM) *
Hi there,

i have 2 .htaccess files, one running on the root public_html, and the other running on one subdomain created with cpanel.

the thing is that i cant get the RewriteRule to work on subdomain

this works perfect on the root path:

RewriteEngine On
RewriteRule ^msn/([^/]+)-([^/]+)-([^/]+)\.html$ /categorias.php?categoria=$2&pagina=$3&cattitulo=$1 [L]

but in the subdomain, its unable to find the categorias.php script
i have tried all the ways, complete path like

/home/sitex/www/subdomain/categorias.php
/home/sitex/public_html/subdomain/categorias.php
categorias.php
./categorias.php

but none of those are working.

someone have any clue of the correct path to catch the script?

Thanks,
Hernan.


So your PHP script is in the subdomain root directory as well?
ElGuiz
yeah, is in the subdomain root

/home/sitex/www/subdomain/script.php
Aerosmith
QUOTE (ElGuiz @ Jan 17 2008, 12:04 PM) *
this works perfect on the root path:


PERFECTLY... Sorry I could not resist.
ElGuiz
lol, no probs, im not an english speaker, so i will take your correction for the future icon_wink.gif
ElGuiz
any help on this issue?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.