• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

NADA

Please...🙁

I am using htaccess for directory management...without hte bullsh!t, I am using it to prevent listing and for redirection.

Unfortunately, one of my pages uses CSS and images, and I can't get them to show up. The redirection seems to pull up only the index file and no links. I'm using Dremweaver as my editor, and all the links check out. There are no files in the root of public_html besides the htaccess file.

Hierarchy (simplified of course) i= lover directory
/public_html/
i
i
/webpages (production/
/under construction pages/

Basically, I have a root-based htaccess file preventing overall indexing and some other things, and individual hta's for redirection. Everything is working fine except this.

If I go directly to the director,the webpage works, css and all.
EX: http://www.myhsr.com/under_construction/index.html

If I try to go to the main site which SHOULD redirect to the same place, it screws up:
http://www.myhsr.com/

anyone?

EDIT: Basically, I realzie that i can redirect to the directory and make it work, but then it changes the url at the top. Is their anyway I can keep the url and still redirect?
 
wait...could this be an html error?

Even after trying to use Cpanel for redirects, the same thign still happens. That said, when I get the page info for the index file, everything points to http://www.myhsr.com/# and not the subdirectory....

let me change it and see if it works
 
Hmm, look up mod_rewrite functions. In there somewhere is what you want.

To lo-fi solution: A frame.
 
I am trying mod_rewrite but things aren't going so well🙁

RewriteEngine on
RewriteRule ^/$ /under_construction/ [R]]

should work, but then I found out it didn't use the CSS and images🙁 As it turns out you have to make sure that every file is redirected by using this:
RewriteEngine on
RewriteBase /
RewriteRule ^under_construction$ under_construction/ [R]

but it is not working🙁

All i want to accomplish is to keep the /public_html/ directory organized🙁 I obviosuly got it all to work when I jsut dumped everything in the public_html/ directory and modded the htaccess file to the html page of my choice, but that was too messy🙁
 
Basically, i need to tell the server that requests for /under_construction/index.html are actually redirects so it can modicy all the urls accordingly.


The only example that I've foud nthat does this is this one, but it doesn't see mto to work:
Assume the following per-directory config file:

#
# /abc/def/.htaccess -- per-dir config file for directory /abc/def
# Remember: /abc/def is the physical path of /xyz, i.e., the server
# has a 'Alias /xyz /abc/def' directive e.g.
#

RewriteEngine On

# let the server know that we were reached via /xyz and not
# via the physical path prefix /abc/def
RewriteBase /xyz

# now the rewriting rules
RewriteRule ^oldstuff\.html$ newstuff.html

In the above example, a request to /xyz/oldstuff.html gets correctly rewritten to the physical file /abc/def/newstuff.html.

According to that I need to but this in every directory, as an htacces file, that will be getting redirected requests.

Currently, I switched to jsut using one htaccess file in the root, and the redirection is working, but the links aren't being modified, preventing the pictures and css sheet from showing up🙁
 
BUWHAHAHAHAHAHAHA

I got it to work:cool

RewriteEngine on
# Rewrite xyz domain to subfolder
RewriteCond %{HTTP_HOST} ^www\.myhsr\.com
RewriteCond %{REQUEST_URI} !/under_construction/
rewriterule (.*) /under_construction/$1 [L]
 
Back
Top