Questions tagged [base-url]
326 questions
0
votes
1 answer
How to change the base of URL in alias directory
I have to website are reside on two different servers. mainwebsite on server1 and subwebsite on server2 . the subwebsite must be accessed as a http://mainwebsite.com/subwebsite .
An alias for it is define on server1 . but the URLs on subwebsite…
![](../../users/profiles/313389.webp)
hd.
- 15,498
- 41
- 106
- 159
0
votes
2 answers
Joomla still load CSS and Javascript from old domain when I change it
I have a Joomla 2.5 project hosted on a domain mywebsite.com and all was working fine. But when I want to work on it in my local machine, Joomla keeps loading CSS and Javascript from mywebsite.com.
I tried to clear the cache and make a global…
![](../../users/profiles/1586116.webp)
toto
- 345
- 2
- 10
0
votes
4 answers
Codeigniter base_url() in whack?
I was trying to set up a basic log in form with a following code:
=form_open(base_url() . 'main/login'); ?>
However after submitting the form the url shows this:
example.com/main/http//example.com/http//example.com/main/login
So I guess in…
![](../../users/profiles/1347153.webp)
Tomkarho
- 1,549
- 3
- 16
- 25
0
votes
2 answers
CodeIgniter .htaccess and base_url() issues
I started working on CodeIgniter recently and I'm having some issues with the .htaccess and the base_url() function causing issues. I hope this is just a noob error and has a quick fix!
Pretty much what happens is that now with the .htaccess the…
![](../../users/profiles/1370060.webp)
Nick Corin
- 1,769
- 4
- 18
- 40
0
votes
1 answer
Duplicated magento store from server to localhost -> url rewrite error
I duplicated my magento store to my local xampp server. Now none of the images which are referenced with a relative url are displayed (e.g. buttons).
In the phtml files, these images are referenced through
![](../../users/profiles/988745.webp)
Socrates
- 189
- 1
- 5
- 19
0
votes
2 answers
base_url not loading in codeigniter
I am using this in my viewregistration.php file
![](../../users/profiles/1127456.webp)
S. M. Shahinul Islam
- 2,701
- 3
- 34
- 66
0
votes
1 answer
Using Codeigniter on localhost
I am new with codeigniter. I have recently started work on a project which is developed in codeigniter.
I have downloaded the project and worked on it locally and then upload the updates to live.
The issue is that when i run it locally to check…
![](../../users/profiles/1226372.webp)
user1226372
- 45
- 1
- 8
0
votes
3 answers
RestKit: Multiple RKClients / Changing baseURL
I initialize RKClient's sharedClient in my application delegate in applicationDidFinishLaunching and it works great. I am using this clients destination URL for most of the application, however at 1 point, in 1 class (Player), I need to load user's…
![](../../users/profiles/1137752.webp)
pachun
- 856
- 2
- 9
- 24
-1
votes
2 answers
Function all of a sudden return a complete path with the dir name in front?
I have a weird problem. I am making kinda my own framework like codeigniter and i have made a function equal to CI's "base_url()" which in my case returns a string like: "http://www.example.com/". My problem (which i have never heard off before)…
![](../../users/profiles/900774.webp)
Thor A. Pedersen
- 993
- 3
- 15
- 29
-1
votes
1 answer
Is it possible to use the require statement with BASE_URL?
I added the below code in my connection.php
define('BASE_URL', 'http://example.com/');
Now, Is it possible to use BASE_URL with require like
require('".BASE_URL."/connection.php');
Why I am doing this because I have a connection file in my root…
![](../../users/profiles/9437856.webp)
user9437856
- 1,900
- 15
- 42
-1
votes
2 answers
How can I set Android Retrofit2 BASE URL taking values of EditText from an activity?
I have an activity from where I'm getting base url ip like 10.0.2.2 and port 8080 through two different EditText. Now I'm making a url string from the obtained values like http://10.0.2.2:8080. Now I need to set this url as ApiClient() BASE_URL.…
![](../../users/profiles/5211933.webp)
Mehedi Hasan Chonchol
- 55
- 2
- 9
-1
votes
2 answers
Codeigniter base_url() adds index.php to my path
I have this code and I want to add a stylesheet file to my page in my CI project. I have set the config file to
$config['base_url'] = 'localhost/project/';
However, the link that tries to get this file includes index.php and in return I cannot…
![](../../users/profiles/7136591.webp)
Spy
- 149
- 9
-1
votes
3 answers
How to use base URL inside number and character in PHP?
I have base URL which is http://localhost/test/. I have an anchor tag called as Click me. I checked in view source It is displaying like
`Click me`
It should be displayed like
`
![](../../users/profiles/6928258.webp)
Naren Verma
- 2,007
- 2
- 18
- 57
-1
votes
1 answer
PHP base_url in Alt Tag
I have alt and title tags that contain data from a table that are appended with the base_url that I would like to remove. When I do so the alt tags show up empty. Currently the is what the code is:
![](../../users/profiles/6736734.webp)
B. L.
- 33
- 1
- 5
-1
votes
1 answer
Unwanted Base url is attached
Let My baseurl is like: http://abcd.com/, I want to use anchor tag Test Page
Here url is field name of database table which contain url try.com. I want to use that url.
When I click Test Page in browser it…
![](../../users/profiles/7413475.webp)
Krity Shrestha
- 193
- 1
- 3
- 10