Re: [users@httpd] mod_rewrite help request

2014-04-01 Thread James Moe
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/01/2014 06:48 PM, Michael Streeter wrote: > Try this: RewriteEngine on RewriteCond %{QUERY_STRING} page=(.*) > RewriteRule ^(.*)$ http://www.example.com/%1? [R,L] > Thank you. That worked a peach. - -- James Moe moe dot james at sohnen-moe

Re: [users@httpd] mod_rewrite help request

2014-04-01 Thread Michael Streeter
On 4/1/2014 1:15 PM, James Moe wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I have changed the way a website refers to page in the URL. The old method was odd, useless and unnecessarily complicated. I wish to have rewrite rule that changes http://www.example.com/?page=somep

[users@httpd] mod_rewrite help request

2014-04-01 Thread James Moe
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I have changed the way a website refers to page in the URL. The old method was odd, useless and unnecessarily complicated. I wish to have rewrite rule that changes http://www.example.com/?page=somepage.php to http://www.example.com/somepage

Re: [users@httpd] mod_rewrite help, # in input url

2014-01-21 Thread Eric Covener
On Tue, Jan 21, 2014 at 4:02 PM, Ayub Khan wrote: > Thank you for the reply. I want to match the text which is follows # and > grab a substring from it. Not sure if its possible with mod_rewrite ? Have a look at the access log. You'll notice that anything after the # isn't actually sent with th

Re: [users@httpd] mod_rewrite help, # in input url

2014-01-21 Thread Yehuda Katz
It is not possible. The string after the `#` is NEVER sent to the server (that is because of the way the browser works and there is nothing the server can do about it). The ONLY way to send it to the server would be to have some client-side scripting that captures and sends it as a real query stri

Re: [users@httpd] mod_rewrite help, # in input url

2014-01-21 Thread Ayub Khan
Thank you for the reply. I want to match the text which is follows # and grab a substring from it. Not sure if its possible with mod_rewrite ? /share/page/repositry/path#filter=xyz%2C%2Fn3%2FUSER%20HOMES%2Fn3%2Fn3555&page=1 >From the above url, I nee to redirect to /share/page/MyFiles&page=1 p

Re: [users@httpd] mod_rewrite help, # in input url

2014-01-21 Thread Rich Bowen
On 01/17/2014 12:49 PM, Ayub Khan wrote: Could some one assist me with creating a rewrite rule in httpd 2.2.4? http://localhost:8080/share/page/repository#filter=path%7C%2FUser%25Homes%2F<2ALFANUMERIC>%2F%2F%7C&page=1 http://localhost:8080/share/page/context/mine/myfiles#filter=path%2F<2ALFAN

[users@httpd] mod_rewrite help, # in input url

2014-01-17 Thread Ayub Khan
Could some one assist me with creating a rewrite rule in httpd 2.2.4? http://localhost:8080/share/page/repository#filter=path%7C%2FUser%25Homes%2F <2ALFANUMERIC>%2F%2F%7C&page=1 http://localhost:8080/share/page/context/mine/myfiles#filter=path%2F <2ALFANUMERIC>/%2F Below is sample: http://loca

Re: [users@httpd] mod_rewrite help?

2011-12-03 Thread Igor Galić
- Original Message - > On November 29, 2011 20:08 , wrote: > > I'm having issues with mod_rewrite and Apache. Hopefully someone > > can > > offer some tips / help. > > > > I'm looking for something simple: > > > > (a) http://www.website.com -> http://www.website.com/blog > > (b) http://

Re: [users@httpd] mod_rewrite help?

2011-11-30 Thread Mark Montague
On November 29, 2011 20:08 , wrote: I'm having issues with mod_rewrite and Apache. Hopefully someone can offer some tips / help. I'm looking for something simple: (a) http://www.website.com -> http://www.website.com/blog (b) http://website.com -> http://www.website.com/blog Also: (1) https:

[users@httpd] mod_rewrite help?

2011-11-29 Thread jtp
All, I'm having issues with mod_rewrite and Apache. Hopefully someone can offer some tips / help. I'm looking for something simple: (a) http://www.website.com -> http://www.website.com/blog (b) http://website.com -> http://www.website.com/blog Also: (1) https://www.website.com -> https://www.we