Apache :: Dynamic URL Not Rewriting

Jul 10, 2013

For some reason I have some old urls which just don't want to rewrite. I have lots of others working fine but I think it may be to do with the symbols in these paths which are stopping it from working. Ideally these should be 301'd.

I need view.asp?filter=category%20name to go to category-name

View 3 Replies


ADVERTISEMENT

Apache :: Rewriting URLs Before They Are Returned To Client - How?

Apr 24, 2013

I need to accomplish the following:

1. User hits my new 2.4 reverse proxy at [URL] ....

2. I proxy the request through to my "real" app server at [URL] ....

3. I also use a re-write rule to add a querystring to the URL: ?Parameter=Foo

4. So, client's request arrives at the my app server as [URL] .....

5. When my app server responds, it is including the Parameter=Foo key/value combination. I don't want this.

6. I want my reverse proxy (somebox.com) to strip "Parameter=Foo" from the string which gets returned to the client.

I have steps 1 & 2 working nicely, but it looks like I can't handle the last bit with with mod_rewrite. I found mod_filter and mod_substitute, but it appears that this stuff is used for re-writing strings IN the document. Can these libs be used to maybe modify (I'm guessing here) the headers so that the "?Parameter=Foo" string can't be seen on the client if they're running something like fiddler?

View 3 Replies View Related

Apache :: Rewriting URL From HTTP To HTTPS With Reverse Proxy

Mar 10, 2015

I am using an apache reverse proxy :

httpd -version
Server version: Apache/2.2.15 (Unix)
Server built: Oct 16 2014 14:48:21

In front of an internet liferay server, I m forcing https connexion and my reverse proxy is the SSL endpoint, and it is working fine.

But inside the liferay page there are "http" link to other webserver, and browser are refusing to load them because they are http and not https.

Is there a way in the reverse proxy to rewrite "on the fly" "http" link to "https" so that everything would be load on the browser ?

I was thinking mod_proxy_html but it doesn't seams to do what I want.

View 2 Replies View Related

Apache :: Automatically Make All PHP Pages Into HTML In Browser Using HTaccess Rewriting?

Jan 11, 2015

i have made my all pages with .html extension and hence my SEO is based on accordingly. Now i made some changes to htaccess that causes to not inclusion of header and footer pages (both are made with .php extension ). so i decided to change the extension of pages (.html to .php) and it wokrs. due to SEO and large number of pages i want all my pages .php (made later). to get converted automatically with .html in browser. so is it possible using .htaccess rewrite.

View 1 Replies View Related

Ubuntu + Apache 2.0 + PHP 5.2.1 - Cannot Use Dynamic Extensions (e.g. Pdo.so)

Mar 6, 2007

I'm trying to compile PHP 5.2.1 on my Ubuntu 6.10 server. I've downloaded the source code from php.net and am running the following configure command on it:

Code:
./configure --with-apxs2=/usr/bin/apxs2 --with-mysql --with-informix=/opt/informix --enable-shared --enable-pdo=shared --without-sqlite --without-pdo-sqlite --with-pdo-mysql=shared --with-zlib --with-xml --with-pdo-informix=shared,/opt/informix
After doing this, then make, I copy over the generated libphp5.so file into my Apache extensions directory, add extension=pdo.so (and lines for the PDO-MySQL/Informix extensions) into my php.ini and restart Apache. I would expect to see PDO, PDO-MySQL and PDO-Informix listed in my phpinfo() - but they don't appear.

So, I tried recompiling PHP but without any of the PDO extensions being shared. This worked, and I could see PDO and PDO-MySQL in phpinfo(), but not PDO-Informix.

So, can anyone hazard a guess as to why none of the PDO extensions load when compiled shared? I don't get any related error messages in the Apache or System logs by the way....

View 0 Replies View Related

Apache :: Redirect Dynamic URL To Static URL

Nov 14, 2013

I transferred my WordPress site to static HTML website, but some other website have a link to my old WordPress site URL....

I want to redirect all traffic from that URL to new URL which is URL...., but my redirect in .htaccess file doesn't work (Redirect 301 /?page_id=1234 URL... because of the query string."mod_rewrite" to create the right code in .htaccess file.

View 1 Replies View Related

Apache :: How To Write Dynamic Image Url

Mar 15, 2013

how can I rewrite a dynamic image url? URL....

View 3 Replies View Related

Apache Standalone With Adobe HTTP Dynamic Streaming

Mar 1, 2013

I have been trying to install apache server on a windows pc which will deliver adobe HDS content. there is a specific tutorial for this in the adobe site, can be found here. I have been following it to the word, but when I try to start apache after asking it to load new modules (mod_f4fhttp), it returns me an error saying that the file is not readable/not found. I have installed the proper visual c++ libraries and also checked the permissions and spellings. This seems to be a common error with php modules in apache, but none of the solutions seems to work.

View 1 Replies View Related

Apache :: Write HTAccess Rules For Dynamic Pages

Feb 15, 2013

I'm really struggling to write htaccess rules for dynamic pages. I've like 20 pages to redirect What I want to do is redirect:

[URL] ....
to
[URL] ....

View 10 Replies View Related

Apache :: Building A Dynamic White-label Site On 2.4.x

Oct 29, 2014

How do I architect and design a dynamic, white-label website i.e. a site where the components are dynamic based on a path component in the URL?

View 1 Replies View Related

Apache :: Setup Dynamic Content Configuration - Correct Headers

Aug 28, 2014

I am trying to setup dynamic content configuration in apache 2.2 httpd conf. Here is the configuration and couple test cases:

CONF:
<FilesMatch ".(js|css|gif|jpg|jpeg|png)$">
Header set Cache-Control "no-cache, no-store, max-age=0, must-revalidate"
</FilesMatch>

TEST 1:
Without <FilesMatch> directive, the headers are set to all requested content as it should. This includes content served from apache server and content from a separate application server.

TEST 2:
If I use the above configuration example, I can see that static content comes with correct headers only

View 1 Replies View Related

Advanced URL Rewriting

Jul 11, 2007

I know how to use basic URL rewriting, but I'd like to redirect URLs like this:

[url]

to this:

[url]

Is that possible to do this with Apache mod_rewrite?

View 4 Replies View Related

Url Rewriting Or Mod_rewrite For IIS

Apr 3, 2007

I've got a big .htaccess file which works brilliantly in mod_rewrite for apache. However, the client I want to use it for uses a windows server which is based on IIS.

Does anyone have experience with rewriting urls on IIS. Is it easy, could I easily change this:

RewriteCond %{REQUEST_URI} !^/(.+).php$
RewriteCond %{REQUEST_URI} !^/$
RewriteCond %{REQUEST_URI} !^/products.php$
RewriteCond %{REQUEST_URI} !^/special-offers.php$
RewriteCond %{REQUEST_URI} !^/best-sellers.php$
RewriteCond %{REQUEST_URI} !^/spares.php$
RewriteCond %{REQUEST_URI} !^/images/
RewriteCond %{REQUEST_URI} !^/css/
RewriteCond %{REQUEST_URI} !^/components/
RewriteCond %{REQUEST_URI} !^/Special_Offers
RewriteCond %{REQUEST_URI} !^/Best_Sellers
RewriteCond %{REQUEST_URI} !^/Spares
RewriteRule ^([^/]+)/?$ products.php?show=cats&main_category=$1

Into something that would work. Someone mentioned using asp.net but I've never looked at this before, and can't afford to spend too long this.

Is there a quick/reliable solution (apart from switching webserver).

View 3 Replies View Related

Is There Anything Like A CDN For Dynamic Content

Apr 13, 2009

Is there anything that takes the concept of a CDN (localised content delivery), but applies it to dynamic stuff like PHP and databases, syncing across worldwide servers as necessary? It'd be nice to deliver the entire site in a localised manner.

I'd imagine Google does something like this for their own sites, and maybe other large companies too — but I have no idea if such a technology exists in the consumer space.

I can see it being a logistical nightmare having to keep all versions of the database in sync, so it wouldn't surprise me if nothing like this exists.

View 3 Replies View Related

Dynamic Caching And PHP

Mar 4, 2009

I'm developing a PHP application which will be hosted on IIS7 and I'm interested to see if it is possible to get dynamic caching working when using an MVC pattern (I'm currently using the Zend Framework and it's Frontcontroller implementation).

View 0 Replies View Related

Horde Dynamic IP

May 18, 2007

I received this error msg for my Plesk account

Cannot log into Webmail. It shows error: "Your Internet Address has changed since the beginning of your Mail session. To protect your security, you must login again."

The solution is given by

[url]

But the host that I was using in the USA refuse to implement it saying it will endanger the server. Is it true? But most of us are using dynamic IPs ADSL, this restriction will affect all, wont it?

View 3 Replies View Related

Dynamic Subdomains In Plesk

Nov 2, 2008

im trying to set up a site for a client whereby they can add subdomains to their existing domain (http://test1.client.com/, http://test2.client.com/, etc.).

its a dedicated server with Plesk...can anyone point me in the right direction please?

ive searched these forums but havent come up with much, but maybe didnt search for the right terms, so my apologies if this has been answered before.

View 1 Replies View Related

301 Redirecto Dynamic URL's In .htaccess

Feb 9, 2006

I need to forward some dynamic URL's So for example:

mysite.com?product=1

needs to be directoed to

mysite.com/1.htm

How can I do this in .htaccess?

View 1 Replies View Related

Monitoring With Dynamic DNS Support

Sep 4, 2008

A casual reader of WHT would observe that there is no perfect hosting company. They will all at one time or another have either a performance issue or an outright outage.

I think there is a simple way to address this problem: upon detecting a failure route traffic to a secondary location. This is done typically through Dynamic DNS.

There a lot of monitoring companies out there and most of them - if not all - limit their function to sending out an alert. Well, that's not good enough for an HA solution.

There needs to be a way to take actual automated remedy action upon failure detection.

I think the simplest possible action would be to update IP address of a host with a backup IP through dynamic DNS. My question then is: does any one know of a monitoring service that would support this?

If you think of a cost of adding another hosting account through a backup provider especially if they both use cPanel, its minimal. And yet you would have a HA solution that enterprise customers spend millions on.

View 14 Replies View Related

404s On Dynamic Pages Only

Apr 9, 2008

I have a problem with a site that I'm hosting on a managed dedicated server - I'll try to explain this as simply as possible!

From my office I seem to have a problem viewing dynamic pages on the site.

- The HTML index page loads fine
- Internal dynamic PHP pages throw up 404s
- Other PHP pages/sites on the same server are fine
- The pages load fine using a proxy browser
- I've cleared my cache which made no difference
- From other locations (home) I have never had the problem

I'm obviously worried that I'm not the only person having these problems.

The fact that the site loads fine through a proxy indicates that there's not a problem with the server,

However I'm confused that it's not a local problem as the HTML pages shouldn't be loading either right?

View 1 Replies View Related

Cache The Dynamic Url (images)

Oct 3, 2007

I've got an application (java web ) tha dynamically creats images ( with dynamic url - ...tab&vi=nia&h=24&ds=bottom&fn...) - like thumbnails,icons ect.

The think I'm trying to deal with is to force caching theese images by a browser.

When the application starts the server gets images and shows code 200 ( and this images apppers in web browser cache), but after reloding or simply viewing the images from the cache url the server shows again code 200. I'd like to have code 304 - not modified - like when browser gets an image from cache.

The dynamic url for image is being created only once - when the appication starts, and after that it stays unchanged, but I still can't force use the cached images - like when it is a static url - .../image.jpg.

View 10 Replies View Related

Dynamic IP Addresses, Counting Visitors Etc.

Feb 22, 2008

Many ISPs assign dynamic IP addresses and I'm wondering if the following will be a problem for my site if it for example had 5 million all-time unique users:

So if someone new comes to my site with an IP that has already been in use by someone else who visited my site, that user will use the same databases with the previous user and won’t even be considered a unique in user.

Do dynamic ISP given IPs work so that someone else gets that IP once you release it?

View 5 Replies View Related

Site Hosted, But Email On Dynamic Ip

Sep 19, 2008

Currently I have my site hosted on a box at home, and using JIP to autoupdate the dynamic ip through zoneedit.

What am I am looking to do is to move my site to a hosted company, and keep my exhange server at home, having the dynamic ip updated through zoneedit, or other.

I have been poking around in zoneedit, and searching the web, but don't seem to be able to work it all out. (the autoupdater, JIP, wants to change the site ip at the same time)

View 2 Replies View Related

Unable To Load Dynamic Library

Jul 18, 2008

I have a weird issue with my Plesk VPS. If I restart the VPS it will work find for about 20 minutes and then go down. All my websites will continue to load and load until they time out.

The weird thing is, I can still access everything. FTP, Plesk, SSH. Just no my websites.

Here is the last error I receive before it continues to load:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/pgsql.so' - libpq.so.4: cannot open shared object file: No such file or directory in Unknown on line 0

Here are the last few errors in my log:

[Thu Jul 17 19:51:59 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Jul 17 19:51:59 2008] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!?
[Thu Jul 17 19:51:59 2008] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!?
[Thu Jul 17 19:51:59 2008] [notice] Digest: generating secret for digest authentication ...
[Thu Jul 17 19:51:59 2008] [notice] Digest: done
[Thu Jul 17 19:51:59 2008] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Thu Jul 17 19:51:59 2008] [notice] LDAP: SSL support unavailable
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/pgsql.so' - libpq.so.4: cannot open shared object file: No such file or directory in Unknown on line 0
[Thu Jul 17 19:51:59 2008] [notice] mod_python: Creating 4 session mutexes based on 128 max processes and 0 max threads.
[Thu Jul 17 19:51:59 2008] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!?
[Thu Jul 17 19:51:59 2008] [warn] RSA server certificate CommonName (CN) `plesk' does

NOT match server name!

View 6 Replies View Related

Home Server But Dynamic IP Address

Sep 12, 2008

If I wanted to host my website from home is there a solution to having a Dynamic IP issued by the internet company ?

View 6 Replies View Related

Plesk 11.x / Linux :: PHP Startup - Unable To Load Dynamic Library

May 1, 2015

I am troubleshooting a problem where the php5 package was replaced and caused lots of psa/plesk packages to be removed. This system details are;

# cat core.version
11.5.30 Ubuntu 12.04 115140407.17
# lsb_release -a
Description: Ubuntu 12.04.2 LTS
Codename: precise
# uname -a
Linux my.host.name 3.2.0-45-generic #70-Ubuntu SMP Wed May 29 20:12:06 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

The plesk panel is up, the websites are running, and the email services are running, but there are many errors like so;

==> error.log <==
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/json.so' - /usr/lib/php5/20090626/json.so: cannot open shared object file: No such file or directory in Unknown on line 0

I also get the following error when inspecting the json module:

root@vps:/etc/php5/mods-available# php -i|grep -i json
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/json.so' - /usr/lib/php5/20090626/json.so: cannot open shared object file: No such file or directory in Unknown on line 0
/etc/php5/cli/conf.d/20-json.ini,

[Code] ....

What I need to install to get that json.so file back?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved