logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Need to to run web application on local environment
Author
shajiuddin



Joined: 27 Oct 2016
Posts: 1
Location: Dubai

PostPosted: Thu 27 Oct '16 15:17    Post subject: Need to to run web application on local environment Reply with quote

Hi All,

I don't have information about how .htaccess is works. I have below script in my .htaccess. This web I downloaded from live now I need to run it on local environment (localhost). I have windows and xampp I already configured db for this web application but because of .htaccess the web application is not working when I execute application it redirects to "http://www.localhost/xampp/" please help to resolve the issue I will be very thank full.

Application address: http://www.localhost/abc

Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
RewriteBase / 
##RewriteRule ^index.html$ home [L,NC]
RewriteRule ^home$ index.php?pageid=91
RewriteRule ^home$ http://www.abc.com/Home
Redirect /index.html http://www.abc.com/home
RewriteRule ^home$ /index.php?pageid=91
RewriteRule ^products$ /product-details.php?pageid=92&ID=2
RewriteRule ^services$ /subpage.php?pageid=94
RewriteRule ^SOLUTIONS$ /subpage.php?pageid=105
RewriteRule ^ABOUT-US$ /subpage.php?pageid=113
RewriteRule ^contact$ /contact.php?pageid=115
RewriteRule ^contact$ /contact.php?pageid=115&webtolead=1
RewriteRule ^customer-relationship-management$ /solutions.php?pageid=116
RewriteRule ^enterprise-mobility-management$ /solutions.php?pageid=117
RewriteRule ^application-performance-management$ /solutions.php?pageid=118
RewriteRule ^quantum-mes$ /solutions.php?pageid=129
RewriteRule ^consulting$ /solutions.php?pageid=119
RewriteRule ^implementation$ /solutions.php?pageid=120
RewriteRule ^support$ /solutions.php?pageid=121
RewriteRule ^Company-Overview$ /subpage.php?pageid=122
RewriteRule ^President-Message$ /subpage.php?pageid=123
RewriteRule ^Clients$ /clients.php?pageid=124
RewriteRule ^News$ /news.php?pageid=125&page=0
RewriteRule ^Careers$ /careers.php?pageid=126
RewriteRule ^sitemap$ /sitemap.php?pageid=128
RewriteRule ^--Pivotal-CRM$ /product-details.php?pageid=92&ID=2
RewriteRule ^Sugar-CRM$ /product-details.php?pageid=92&ID=3
RewriteRule ^Airwatch-EMM$ /product-details.php?pageid=92&ID=5
RewriteRule ^Compuware-APM$ /product-details.php?pageid=92&ID=6
RewriteRule ^IStorage$ /product-details.php?pageid=92&ID=7
RewriteRule ^Astute-Solutions$ /product-details.php?pageid=92&ID=9
RewriteRule ^MS-Dynamics$ http://www.abc.com/products
RewriteRule ^Test-Product$ /product-details.php?pageid=92&ID=10 

RewriteRule ^News-([0-9]+)$ /news-details.php?pageid=125&id=$1
RewriteRule ^NEWS-([0-9]+)$ /news.php?pageid=125&page=$1
RewriteRule ^Careers-([0-9]+)$ /job-details.php?pageid=126&id=$1
RewriteRule ^CAREERS-([0-9]+)$ /job-details.php?pageid=126&page=$1

<IfModule mod_expires.c>
ExpiresActive On
############################################
## Add default Expires header
## http://developer.yahoo.com/performance/rules.html#expires
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
 ExpiresDefault "access plus 1 week"
</FilesMatch>
</IfModule>
<IfModule mod_headers.c>
Header unset ETag
Header unset Last-Modified
</IfModule>
FileETag None
<FilesMatch "\.(ico|gz|JPG|jpg|jpeg|png|gif|js|css|swf)$">
Header unset Cache-control
Header set Expires "access plus 1 week"
</FilesMatch> 
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Sat 12 Nov '16 22:34    Post subject: Reply with quote

You can edit that in the httpd.conf file.
Back to top


Reply to topic   Topic: Need to to run web application on local environment View previous topic :: View next topic
Post new topic   Forum Index -> Apache