•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Web Developers' Lounge section within the Web Development category of DaniWeb, a massive community of 456,501 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,671 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Web Developers' Lounge advertiser: Search Engine Optimization
Views: 766 | Replies: 2
![]() |
| |
•
•
Join Date: Apr 2006
Location: City of God
Posts: 163
Reputation:
Rep Power: 3
Solved Threads: 10
Hi All,
I am trying to change my site's address from www.site.com/dir/page.html to www.site.com. I exactly don't know how to do this. Is it any java script or do I have to edit my htaccess file? Any help?
Thanks.
I am trying to change my site's address from www.site.com/dir/page.html to www.site.com. I exactly don't know how to do this. Is it any java script or do I have to edit my htaccess file? Any help?
Thanks.
A Perfect World
•
•
Join Date: May 2006
Location: New Jersey
Posts: 1,422
Reputation:
Rep Power: 5
Solved Threads: 34
Use a 301 redirect in Apache. It's the best way to do it.
redirect 301 /old/old.htm /
redirect 301 /old/old.htm /
John Conde
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
![]() |
•
•
•
•
•
•
•
•
DaniWeb Web Developers' Lounge Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
adult advertising blog browser browsers browsing community data design development devices domains firefox google html india internet java legal linux marketing math merger microsoft mobile applications mozilla msn multimedia news php privacy report research search security sex social networking software technology users video w3c web web development wiki wikipedia xml yahoo youtube
- No Redirection to my Apache Server (Linux Servers and Apache)
- 2 routers home network (Networking Hardware Configuration)
- Virtuoso Net Solutions (Website Reviews)
- Do you know what I need for this to Validate (PHP)
- Pass by pointer (C++)
- changing IP address fedora (*nix Software)
Other Threads in the Web Developers' Lounge Forum
- Previous Thread: can't get FormToMail. with php to work on my local server
- Next Thread: Convert a VB.Net app to a web app?



Hybrid Mode