![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Filesystems, Disks and Memory Questions involving NAS, SAN, RAID, Robotic Libraries, backups, etc go here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Symlinks | ct1977 | UNIX for Dummies Questions & Answers | 1 | 02-21-2008 02:15 PM |
| Nested Symlinks? | deckard | Shell Programming and Scripting | 0 | 09-07-2007 12:07 PM |
| search and replace symlinks | nixrock | UNIX for Advanced & Expert Users | 2 | 10-19-2005 02:25 PM |
| .htaccess | Avenger | UNIX for Dummies Questions & Answers | 3 | 04-12-2002 08:49 AM |
| .htaccess? | Puc conDoin | UNIX for Dummies Questions & Answers | 1 | 05-28-2001 05:58 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Quote:
I still get a failed load, when I just load the domain name it does not show the home page, rather the index of the page and no icons when I click on the index.html file it gets a page cannot be displayed error. Back to the drawing board, I think I will try explicitly try defining each file that is there and make sure it is not the one called. or something. What do you think? Richard |
|
|||
|
Ok, I tried this both in the .htaccess file and in the httpd.conf file in the <VirtualHost ip> tag, and I tried it this way, in both places:
Code:
RewriteEngine on
RewriteCond %{ENV:REQUEST_FILENAME} !-f
RewriteCond %{ENV:REQUEST_FILENAME} !-d
RewriteCond %{ENV:REQUEST_URI} !^/?members
RewriteRule ^/?(.+) /members/$1 [L]
Any more ideas? Is there something extra I need to do, do I need to allow mod_rewrite somewhere above in the httpd.conf file, like a module or something? Thanks. Richard PS> Also with the above mentioned code, when I load the main url, instead of the index listing of everything in the directory, I get a page cannot be found(404) error. Strange. |
|
|||
|
Ok, I went and looked over my httpd.conf file and I do see the modules already loaded:
LoadModule rewrite_module libexec/mod_rewrite.so and AddModule mod_rewrite.c Since those are there, why would this not work? Thanks, Richard Quote:
|
|
|||
|
Yeah I added the ENV: based on the documentation, just to try it, but it does not work either way.
With this: (I changed the system over the weekend, the directory is now /web instead of members) Code:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{EQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/?web
RewriteRule ^/?(.+) /web/$1 [L]
that does work, but images will not show, I get placeholder spots with red x's in them... Is there perhaps something in the link killing the images? when I go to: http://www.mydom.com/usernamehere I still get a page not found instead of redirecting the file loaded to /web/usernamehere I'm baffled and lost Anything further you notice? (again thank you for all the help, I'm learning Richard |
|
|||
|
I turned on the rewrite log to see what is happening:
Code:
AddModule mod_rewrite.c RewriteLog "/usr/local/apache/logs/rewrite.log" any ideas? Richard |
|||
| Google The UNIX and Linux Forums |