Welcome Guest, Not a member yet? Register   Sign In
Path Problem in WAMP
#1

[eluser]murtuza54[/eluser]
Hi

I made an application in one pc directly in root folder. it works well in this pc.

now i copied this project to another pc having wamp. i put whole application in "abc" folder..

now its having path problem,
css , images n js are not included..

well i have 2 application folders in main application.
admin and user
both have own config files.
in admin
base_url was http://localhost/admin
now i changed it to http://localhost/abc/admin

in user
base_url was http://localhost/user
now i changed it to http://localhost/abc/user

both application's controllers were using css,images and js from root folder..

now as i moved whole application in abc folder
css,images and js are not being included.

I know if i change path at each n every place, it will start working..
but is there any way to get application working without change at every place.? can .htaccess help it?
#2

[eluser]Xelgen[/eluser]
Guess one needs more info, to say smth.
In what folders are your images, css and js placed? are they included in .htacess exclusions? how do you call them, in your views?
#3

[eluser]murtuza54[/eluser]
-wamp
-- abc
---images/ all images
---css/ all css
---js/ all js here

---admin/ application admin
in which i call any js,image or css directly like /css/style.css , /js/require.js, /images/submit.gif
it works well in 1st pc.
but not in 2nd pc where its in abc folder ...


.htaccess

RewriteEngine on

RewriteCond $2 !^(index(|_[^\./]+)\.php|robots|images|js|css|tools\.txt)
RewriteRule ^(admin|user)(.*)$ index_$1.php/$2 [L]




Theme © iAndrew 2016 - Forum software by © MyBB