HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HP Apache 2.x on HP-UX ModRewrite Rule
Operating System - HP-UX
1833760
Members
2631
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2008 12:37 PM
08-14-2008 12:37 PM
HP Apache 2.x on HP-UX ModRewrite Rule
Hello,
We are using HP Apache 2.x on HP-UX Unix.
I have a requirement for writing modrewrite rule to serve the content from "/webserverdocumentroot/somedirectory/somefile.html"
Basically we need HTTP Status code 200 after hitting web page successfully. The usual modrewrite rule returns HTTP status 3xx.
Appreciate if someone can write down the complete syntax using hp apache 2 modrewrite rule.
Thanks,
Shiv
We are using HP Apache 2.x on HP-UX Unix.
I have a requirement for writing modrewrite rule to serve the content from "/webserverdocumentroot/somedirectory/somefile.html"
Basically we need HTTP Status code 200 after hitting web page successfully. The usual modrewrite rule returns HTTP status 3xx.
Appreciate if someone can write down the complete syntax using hp apache 2 modrewrite rule.
Thanks,
Shiv
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2008 01:21 PM
08-14-2008 01:21 PM
Re: HP Apache 2.x on HP-UX ModRewrite Rule
> I have a requirement for writing modrewrite
> rule to serve the content from
> "/webserverdocumentroot/somedirectory/somefile.html"
I'm stuck at Apache 1.3, but I thought that
a rewrite rule was used to transform one
URL file spec into another. What are you
trying to transform into what?
> [...] The usual modrewrite rule returns
> HTTP status 3xx. [...]
It does? What _is_ the "usual modrewrite
rule"? What is "xx" in "3xx"? (Do you
think that hiding details like this is
helpful?) I normally see "200" in my access
log for rewritten accesses.
> rule to serve the content from
> "/webserverdocumentroot/somedirectory/somefile.html"
I'm stuck at Apache 1.3, but I thought that
a rewrite rule was used to transform one
URL file spec into another. What are you
trying to transform into what?
> [...] The usual modrewrite rule returns
> HTTP status 3xx. [...]
It does? What _is_ the "usual modrewrite
rule"? What is "xx" in "3xx"? (Do you
think that hiding details like this is
helpful?) I normally see "200" in my access
log for rewritten accesses.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2008 01:53 PM
08-14-2008 01:53 PM
Re: HP Apache 2.x on HP-UX ModRewrite Rule
3xx means it could be 301 or 302.
Redirected pages return http status codes in the series of 3xx.
Redirected pages return http status codes in the series of 3xx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2008 02:27 PM
08-14-2008 02:27 PM
Re: HP Apache 2.x on HP-UX ModRewrite Rule
> 3xx means it could be 301 or 302.
It may to you. To me it includes 304, and
some others.
> Redirected pages return http status codes
> in the series of 3xx.
Yes, but there's a difference between
"redirect" and "rewrite". A rewritten URL
can easily return a 200 status code. A
redirected URL should return a 302 (or
similar).
Only you can see what's in your httpd.conf
file, so it's hard for me to guess what
you're really doing. (And you haven't
answered many questions.)
It may to you. To me it includes 304, and
some others.
> Redirected pages return http status codes
> in the series of 3xx.
Yes, but there's a difference between
"redirect" and "rewrite". A rewritten URL
can easily return a 200 status code. A
redirected URL should return a 302 (or
similar).
Only you can see what's in your httpd.conf
file, so it's hard for me to guess what
you're really doing. (And you haven't
answered many questions.)
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP