It shows that you are unregistered. Please register with us by clicking Here
![]() |
|
![]() |
![]() | Register - FAQ - Today's Posts - New Posts - Support - Search | ![]() |
|
|
#11 (permalink) | |
|
Senior Member
Join Date: Aug 2006
Age: 26
Posts: 755
|
Quote:
__________________
Ajay D'Souza Techtites - Your daily dose of all things Tech! MegaThemes | Sir Arthur Conan Doyle | I Sent This WebberZone Domains |
|
|
|
|
|
|
#12 (permalink) | |
|
Senior Member
Join Date: Jul 2006
Age: 23
Posts: 238
|
Quote:
|
|
|
|
|
|
|
#13 (permalink) |
|
Senior Member
|
Nice tip. Thx
__________________
Download and request FREE website templates http://www.mercness.net.au solidplastering |
|
|
|
|
|
#14 (permalink) |
|
Senior Member
Join Date: Oct 2006
Age: 21
Posts: 176
|
Does this have to go on an .htaccess file for every file-folder, or just in a parent directory and then affect only the first portion of all web-addresses?
__________________
Don't gain the world and lose your soul, wisdom is better than silver or gold.
~Bob Marley~ |
|
|
|
|
|
#15 (permalink) |
|
Senior Member
Join Date: Aug 2006
Age: 26
Posts: 755
|
Only in the parent directory.
All .htaccess file rules in the parent directory automatically effect those in subfolders
__________________
Ajay D'Souza Techtites - Your daily dose of all things Tech! MegaThemes | Sir Arthur Conan Doyle | I Sent This WebberZone Domains |
|
|
|
|
|
#16 (permalink) |
|
Senior Member
Join Date: Oct 2006
Age: 21
Posts: 117
|
Can this same command be used to redirect the site to an entirely different site? For example, say you moved your website to a new domain name. Could you use the same command to change yourdomain.com/page.html to yourotherdomain.com/page.html?
|
|
|
|
|
|
#17 (permalink) |
|
Senior Member
Join Date: Aug 2006
Age: 26
Posts: 755
|
You can use mod_rewrite to achieve what you want above.
However, if you are planning on forwarding your entire site, you might as well use a Forwarding Domain option at your domain registrar.
__________________
Ajay D'Souza Techtites - Your daily dose of all things Tech! MegaThemes | Sir Arthur Conan Doyle | I Sent This WebberZone Domains |
|
|
|
|
|
#19 (permalink) |
|
Senior Member
Join Date: Aug 2006
Age: 26
Posts: 755
|
<IfModule mod_rewrite.c>
# Retain the www. RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC] RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301] </IfModule>
__________________
Ajay D'Souza Techtites - Your daily dose of all things Tech! MegaThemes | Sir Arthur Conan Doyle | I Sent This WebberZone Domains |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Remove Listing from DMOZ | evely | All Other SE's & Directories | 1 | 1 Week Ago 04:21 PM |
| Can't remove directly | alex | Site and Server Administration | 1 | 10-12-2006 10:09 AM |