473,588 Members | 2,473 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Resolving an Address

TheServant
1,168 Recognized Expert Top Contributor
Hey Guys,
If you knew me, you would have expected this, but I am wanting to organise my files into a more efficient system. I want to have my root directory to just contain my index file (which will redirect) and all the folders that my other files are in. So I will have a main folder, and then I will have a members folder.

Right now everything is in the root, so I have:
www.mydomain.co m/myfile.php

But if I do this new system I will have:
www.mydomain.co m/main/myfile.php

I seem to recall there being a way to resolve addresses using the htaccess file, where you can change the display from www.mydomain.co m/main/ to just www.mydomain.co m/

Is that right? If so, what is the htaccess line?
Apr 1 '08 #1
1 1739
ak1dnar
1,584 Recognized Expert Top Contributor
Moving from Php Forum to Apache Forum.

Please Read URL rewriting here
http://httpd.apache.org/docs/2.0/misc/rewriteguide.html
Apr 1 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

11
3226
by: michael potter | last post by:
I would like to code a prototype that returns an enum, but not declare the enum. This works on several systems and compilers, but fails on aix xlc. Here is the sample code: enum anEnum someFunc(void); when i run:
1
18749
by: Uzi Baruch | last post by:
Hi! i want to know if i have an ip address of a computer and its DNS server name, if their is an windows API that can resolve the computer name of the given ip address. or vice verca - given a computer name and it's DNS server, i need to obtain the IP address.
1
1360
by: SLIDE6 | last post by:
I want to write a function to retrieve the current IP address of a computer. All the examples I've seen rely on taking the first address from a list. But I'm in something of a predicament -- that address isn't always right. For example, if my computer is connected to a VPN, the address I want (the one associated with the VPN) might be the third entry in the list! Is there some more intelligent way to determine what the "correct" address is?
5
2116
by: Chris | last post by:
What is going on here... I have my site running locally on my machine, and when I don't have an internet connection (like when Im on the train) I get this error when I try to open an asp.net project: "The web server reported the following error when attempting to create or open the web project located at the following URL: 'http://localhost'. The server name or address could not be resolved."
1
1474
by: Stephen | last post by:
Hi all, is there a way that I can create an application that can "Resolve" any given address in the URL to be redirected to a default website. I guess that It can be done by "Resolving DNS address" Please Advice, Stephen.
1
3458
by: Ghislain Tanguay | last post by:
Hi everyone, this is the code I use now for resolving domain address with email. But I use an external program "nslookup" to verify my addresses. Is there an intrinsic object in dotnet who do the same job? Dim objInfoProc As New ProcessStartInfo Dim objProc As Process Dim objStdOut As StreamReader Dim reg As Regex
3
1011
by: andrew | last post by:
I have a web application that uses a web.config file to set the url for a web service on another machine... when I run the app with an alias for the machine name I get: http://RptSvrWR/reportserver/ReportService.asmx "The request failed with HTTP status 401: Access Denied." When I literally copy the IP address and overwrite the alias name in my web config file... everything works fine... anyone know what I'm doing wrong?
0
863
by: Adam D. Barratt | last post by:
Hi, I've been searching Google for ideas as to how to use Mapi (in this case an Outlook client connecting to Exchange Server) from VB.NET to resolve e-mail addresses for contacts for which we have no information other than their name, but have been unable to find anything that addresses this particular scenario.
2
16388
by: John Kotuby | last post by:
Hi all, I have been working on transferring my development environments to a new Vista ultimate machine (from XP) and am running into difficulties. After patching both SQL Server 2005 and VS 2005, I am now attempting to test my VB Web Site application the same way I did in XP. IIS is running and in IIS Management I see the default website in the correct spot, yet http://localhost/ is not resolving. Has anyone else run into this problem...
3
3460
by: shawie60 | last post by:
Hi guys, I have a bit of a problem. I've set up my network ( 3 desktops 1 x wireless laptop) using a TK IP router. Most use fixed IP addresses. Each machine can access the internet. 1 of the machnes (laptop) can find 1 of the networked PC's. None of the machines can find/browse the NAS ( fixed IP address) tho I can access the login configuration setup. If I ping each machine's IP address I get a reply as expected. if I use net view \\ip...
0
7929
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7862
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8357
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7987
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6634
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5729
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5398
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3887
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1196
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.