i have finished building joomla website in folder inside subdomain. need redirect users go to: www.subdomain.domain.com www.subdomain.domain.com/joomla without them realizing inside joomla folder.
i have done alot of research , have found using .htaccess file best course of action me having alot of trouble getting syntax correct. can please help?
this trying use , not working:
please help!!!
i have done alot of research , have found using .htaccess file best course of action me having alot of trouble getting syntax correct. can please help?
this trying use , not working:
code: select all
rewriteengine on
rewritebase /
rewritecond %{http_host} ^(www\.)?subdomain\.domain\.com/joomla
rewritecond %{request_filename} !-d
rewritecond %{request_filename} !-f
rewriterule ([a-z0-9-]+)/? http://$1.subdomain.domain.com/joomla [r=301,nc,l]
please help!!!
i'm no means expert in htaccess rewriting, though have got sophisticated things going. having trouble seeing you're trying code!
i assume want
to appear though it's
which must admit useful thing in many instances. in past i've arranged web requests http://www.subdomain.domain.com directed 'joomla' folder, using web server configuration.
in first place, http_host variable doesn't contain path, host initial test be
possibly [nc] appended.
now rewriterule needs detect joomla structure don't see code trying do.
it seems trying catch such names jan12-feb12 , direct them page http://jan12-feb12/subdomain.domain.com/joomla
what have thought trying take links don't specify joomla , direct them correct folder. possibly like...
that might closer you're trying achieve i've not tried it!
i'm sure there glaring errors find
i assume want
code: select all
http://www.subdomain.domain.com/joomla/index.php?stuff
to appear though it's
code: select all
http://www.subdomain.domain.com/index.php?stuff
which must admit useful thing in many instances. in past i've arranged web requests http://www.subdomain.domain.com directed 'joomla' folder, using web server configuration.
in first place, http_host variable doesn't contain path, host initial test be
code: select all
rewritecond %{http_host} ^(www\.)?subdomain\.domain\.com
possibly [nc] appended.
now rewriterule needs detect joomla structure don't see code trying do.
it seems trying catch such names jan12-feb12 , direct them page http://jan12-feb12/subdomain.domain.com/joomla
what have thought trying take links don't specify joomla , direct them correct folder. possibly like...
code: select all
rewritecond %{http_host} ^(www\.)?subdomain\.domain\.com [nc]
rewritecond %{request_filename} !-f
rewritecond %{request_filename} !-d
rewritecond %{request_uri} !^/joomla
rewriterule ^(.*)$ "http://www.subdomain.domain.com/joomla/$1" [r=301,l,nc]
that might closer you're trying achieve i've not tried it!
i'm sure there glaring errors find
Comments
Post a Comment