Results 1 to 11 of 11
Thread: .htaccess help
-
08-30-2009, 04:09 PM #1Newbie
- Join Date
- Aug 2009
- Posts
- 23
.htaccess help
Hi,
I want help in .htaccess
When anyone opens http://website.com/folder/any-thing-here
I want it to open http://website.com/folder
How do I do this ??
-
08-30-2009, 04:31 PM #2Web Hosting Master
- Join Date
- Aug 2002
- Posts
- 645
Try putting the following code in the "public_html" directory in a file called ".htaccess"
Code:ReDirect /folder/any-thing-here http://website.com/folder
-
08-30-2009, 05:20 PM #3Aspiring Evangelist
- Join Date
- Apr 2009
- Location
- New Jersey
- Posts
- 367
IF you are using cPanel/WHM you can do a redirect within cPanel.
-
08-30-2009, 06:51 PM #4WHT Addict
- Join Date
- Jun 2003
- Location
- New Zealand
- Posts
- 130
Code:RewriteRule ^/folder/(.+)$ http://website.com/folder
-
08-30-2009, 07:36 PM #5Web Hosting Master
- Join Date
- Jan 2005
- Location
- Richmond, VA
- Posts
- 3,119
Lookup htaccess redirects - there are different types, depending on your SEO needs, so proceed with caution here. The suggestions listed above will certainly work, but make sure you know how they work before implementing them.
Daniel B., CEO - Bezoka.com and Ungigs.com
Hosting Solutions Optimized for: WordPress • Joomla • OpenCart • Moodle
Data Centers in: Chicago (US), London (UK), Sydney (AU), Sofia (BG), Pori (FI)
Email Daniel directly: ceo [at] bezoka.com
-
08-31-2009, 04:52 AM #6Disabled
- Join Date
- Dec 2007
- Posts
- 3,597
If you can do that or that is not working trough htacces file I suppose that would be good idea to get in touch with your web hosting service provider nd ask to have that done on the server side. Good luck
-
08-31-2009, 05:30 AM #7Web Hosting Evangelist
- Join Date
- Aug 2009
- Posts
- 477
Do you want to "mask" URLs, or do you want to make simple redirects? If it's 2nd option, just click Redirects icon in cPanel - it's the easiest way to get this job done.
-
08-31-2009, 01:43 PM #8Web Hosting Guru
- Join Date
- Apr 2009
- Posts
- 282
Try configuring it in your control panel. If your control panel has that function it will automatically write necessary lines to the .htaccess file.
-
08-31-2009, 07:24 PM #9New Member
- Join Date
- Aug 2009
- Posts
- 4
-
08-31-2009, 09:28 PM #10Junior Guru Wannabe
- Join Date
- Aug 2009
- Location
- Bangalore
- Posts
- 59
redirect 301 /folder/any-thing-here /folder
hope this will work.
-
09-01-2009, 04:44 PM #11Junior Guru Wannabe
- Join Date
- May 2008
- Location
- U.S.A.
- Posts
- 77
Similar Threads
-
.htaccess help
By howsthat in forum Hosting Security and TechnologyReplies: 6Last Post: 10-05-2007, 12:17 PM -
htaccess and IIS
By 3-rx in forum Hosting Security and TechnologyReplies: 3Last Post: 10-20-2006, 12:17 PM -
.htaccess
By j_pearcy in forum Hosting Security and TechnologyReplies: 3Last Post: 05-13-2002, 04:26 AM -
htaccess
By ThePrimeHost in forum Dedicated ServerReplies: 1Last Post: 01-13-2002, 04:59 PM -
htaccess on a RAQ
By FireHawk in forum Hosting Security and TechnologyReplies: 0Last Post: 10-03-2001, 12:39 AM