Jump to content

Apache - pos sitewise rewrite problem?


marcusmiller

Recommended Posts

Hey all,

 

first time post, how you all doing. Good I hope! :)

 

I have a problem with an apache server I am running, some functionality that I had taken for granted does not seem to be there?

 

The servers I am used to working with are cobalt raq4\'s which run a modified version of red hat linux 6.2.

The new server is a plain redhat 7.3 baby.

 

Here goes:

The old server would accept page requests for www.xxxurlxxx.com/test.htm\' in all of the following formats:

 

test

test/

test.htm

test.htm/

 

the new server will only accept

 

test.htm

test.htm/

 

Any ideas? I have been reading up on mod_rewrite that I have used extensively in the past along with content negotiation but cannot find a direct reference to this problem.

 

I want to be able to build urls in this fashion.

 

www.xxxurlxxx.com/test/text-here-references-no-page.htm

 

In the absence of a directory named test and a page named (see above) the test page is served. Test then explodes the url to get the final part, then explodes this to remove the - and .htm. This is then used to query a database to display the relavent info.

 

I would really apreciate any help or ideas people can offer.

Kind Regards

Marcus

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.