Forum Moderators: phranque
1)
DirectoryIndex index.html /Merchant2/merchant.mvc?Store_Code=X&Screen=HOME
2)
ErrorDocument 404 /Merchant2/merchant.mvc?Store_Code=X&Screen=HOME
They work great.
But, I now want the following four addresses to go to:
http://www.example.com/support/supporthomepage.htm
or else
http://www.example.com/support/index.htm
1) example.com/support
2) example.com/support/
3) www.example.com/support
4) www.example.com/support/
The DirectoryIndex command is forcing those four to go to:
/Merchant2/merchant.mvc?Store_Code=X&Screen=HOME
Can anyone help me? I hope this is clear enough.
[edited by: jdMorgan at 5:44 pm (utc) on July 12, 2007]
[edit reason] example.com [/edit]
However, I am gagging on the fact that you use a URL like /Merchant2/merchant.mvc?Store_Code=X&Screen=HOME as an index page.
I am further astounded that you show the same page as your 404 Error page.
This is a house of cards waiting for the wind to start blowing, I think.
2) Why is this a problem (it seem to work fine):
(using a URL like /Merchant2/merchant.mvc?Store_Code=X&Screen=HOME as an index page.
and using the same page as a 404 Error page.)
This is a house of cards waiting for the wind to start blowing, I think.)
Thank you for your help.
Therefore, we see a lot of interest here in the subject of "Search engine friendly URLs" -- converting sites to publish static-looking, short, keyword-related URLs in links on their pages, and then using mod_rewrite and other techniques to 'map' these URLs, when requested from the server, back to the form needed by the sites' page-generation script(s).
Our purpose in this forum is to discuss Apache-related topics; While we'll be happy to help you get your code working, we cannot support the demand for a "free code-writing service" here. The documents cited in our forum charter [webmasterworld.com] and the tutorials in the Apache forum section of the WebmasterWorld library [webmasterworld.com] may be useful to help get you started.
We often have threads on rewriting and/or redirecting dynamic URLs or URLs with query strings. A site search focused on those keywords will doubtless turn up some examples specific to your questions.
Jim
"We often have threads on rewriting and/or redirecting dynamic URLs or URLs with query strings. A site search focused on those keywords will doubtless turn up some examples specific to your questions."
If you reread my question, that isn't exactly what I'm trying to do.
I'm trying to get x.com/support to go to www.x.com/support/thisfile.htm (given my current .htaccess file at x.com/.htaccess).
Given, you are stressing that this forum isn't a "free code-writing service", is there another forum here at WebmasterWorld where it is appropriate for me post questions for this type of information?
Otherwise, can you suggest a website or two where I can pay to get basic questions like this answered for a reasonable cost? Something where you can purchase points/tokens and use them to get support services?
Thank you
DirectoryIndex /support/supporthomepage.htm
Jim