I have removed a file from being on the website and would like to forward people who were looking for that file to another file. Is there an easy way to use redirect in the control panel? How can I use .htaccess to do this? Also, can I do it for an entire folder?
For cPanel, you can log into the control panel and on the main screen you will see an icon for Redirects. From there you can select the file you want to redirect and then choose the destination. The .htaccess file with the redirect commands will automatically be created for you.
What if I want to make the modifications in the .htaccess file myself? How can I do that?
Redirect /olddirectory/oldfile.html http://yoursite.com/newdirectory/newfile.html
This is the base of the redirect command. You'll make a text file called ".htaccess" and upload that to your folder. Then just replace the old directory with your directory name etc.
How about if I want to redirect an entire folder? Do I just do the same thing except replace the file with the folder name?
For redirecting a folder you can't do; Redirect /olddirectory http://yoursite.com/newdirectory/
You MUST have a file in the folder to redirect with;
Redirect /olddirectory/oldfile.html http://yoursite.com/newdirectory/newfile.html
- Home
-
Store
- Browse All
- MLH-Share
- Shared Hosting
- USA Shared Hosting
- Clustered Hosting
- Cloud Vps Hosting
- Cloud Reseller
- Reseller Hosting USA
- Germany-Reseller
- Uk Reseller Hosting
- Hong Kong Reseller
- Singapore Reseller
- AUSTRALIA RESELLER
- JAPAN RESELLER
- SOUTH AFRICA
- NetherLand
- KVM VPS server
- OpenVZ VPS Server
- VPS-Cloud
- WINDOWS VPS Server
- Windows Remote - Desktop
- USA-Remoted-Desktop
- Uk Cpanel Vps
- Singapore Cpanel Vps
- VPS Reseller
- USA Dedicated Server Plans
- Canada Dedicated Server
- Germany
- Server bidding
- Uk Europe Dedicated Servers
- Singapore Dedicated Servers
- Unmanaged Server
- Special Offer
- Order Dedicated IP
- 1 days trial vps
- Web Design
- WordPress Hosting
- SSL Certificates
- Email Spam Filtering
- HK-VPS Server
- PHP scripts licensed
- hasnatint
- mlh-share-usa
- SSL Certificates
- Website Security
- Website Backup
- VPN
- SEO Tools
- Register a New Domain
- Transfer Domains to Us
- Announcements
- Knowledgebase
- Network Status
- Affiliates
- Contact Us
-
More