i have problem after installing the bootstrap package on my localhost wamp
http://localhost/fileadmin/bsdist/lib/bootstrap/3.2/css/bootstrap.min.css?1419681956
i have added config.baseURL
baseURL = http://localhost/typo3/
/typo3/ is the admin panel you can't set that URL as baseURL. I don't you what happen but i think he will remove that part.
So set your Domain as baseURL and don't forget the / at the end.
baseURL = http://localhost/
don't forget to clear your complete cache to load the changes.
As #Stony already pointed you cannot use .../typo3/ as baseURL because this is location specific for TYPO3's backend.
On the other hand working with TYPO3 in subfolders always rises some problems as you need to change several configs (i.e. in .htaccess for url rewriting) to make it working correctly. And as I last tested clean installation in subfolder doesn't work as expected out-of-the-box.
Fortunately there's simple and elegant solution - creating custom domain locally.
Just in your hosts file add line like
127.0.0.1 myproject.loc
Add a vhost for this myproject.loc in your Apache config
Restart Apache and flush the DNS cache
In such case your project will be available locally at url http://myproject.loc/ so you can use it as well as your baseURL
If the typo3 installation is not in the domain's root directory, you must modify the RewriteBase in the default htaccess:
RewriteBase /<project_directory>
In your case:
RewriteBase /typo3
Related
When I try to migrate my TYPO3 6.2.31 to 7.6.23 I've got some problems.
Especially the page tree is missing so I got this error
The requested resource "%2Fmain" was not found
I've tried this way to migrate:
1.) Copy the whole page
2.) Changing the symlinks to the new sources
3.) Starting the migration wizard in install tool
And now When I want to access the backend I got the above mentioned error.
what can I do?
thanks.
When I call url.de/typo3 the follwing url is called:
index.php?route=%252Fmain&token=XXX
The correct one should be
index.php?route=%2Fmain&token=XXX
What could be the problem in the url?
Please follow below steps.
Download typo3 7 LTS latest source and create symlink.
Add your typo3conf, uploads and fileadmin folder
Open install tools and clear both cache php and typo3.
Compare currentdatabse specification and perform all steps.
Go to upgrade wizard and complete all needed steps
Clear cache and remove typo3temp file and open BE
as mentioned here: Need to allow encoded slashes on Apache
Issue 1: Apache believes that's an invalid url
Solution: AllowEncodedSlashes On in httpd.conf
Issue 2: Apache decodes the encoded slashes
Solution: AllowEncodedSlashes NoDecode in httpd.conf (Requires Apache 2.3.12+)
Issue 3: mod_proxy attempts to re-encode (double encode) the URL changing %2F to
%252F (eg. /example/http:%252F%252Fwww.someurl.com/)
Solution: In httpd.conf use the ProxyPass keyword nocanon to pass the raw URL thru the proxy.
ProxyPass http://anotherserver:8080/example/ nocanon
httpd.conf file:
AllowEncodedSlashes NoDecode
<Location /example/>
ProxyPass http://anotherserver:8080/example/ nocanon
</Location>
whenever I type my www.domain.com into the address bar, I automatically get redirected to www.domain.com/site/index.php.
I have removed all subdomain links and redirects in cpanel as well as cleared all of the .htaccess files in /www/ & /public_html/ and all subdirectories but the problem still remains.
Not sure if there is any other place redirects can exist for this to happen, but what I want is is when I type www.domain.com, it goes straight into the ROOT DIRECTORY and shows me the directory tree.
Within the main subdirectories I'm using:
Magento 1.7.2
Joomla 3.0
VTiger 5.4
In /etc/apache2/sites-available/default
check for DocumentRoot directives such as
DocumentRoot /var/lib/orangehrm
Also check for rewrite directives.
I have a Zend app which I am trying to port over to a [new] computer. I have it working already on the previous machine.
When I go to the URL localhost/myapp, the application loads the correct index page (i.e. runs my IndexController.indexAction() as it should). However, when I go to any other page, I get an error that the controller "myapp" cannot be found.
I have confirmed that rewrites are working (the error page that is rendered is via my custom ErrorController) - it seems that for some reason, Zend is treating the webroot as localhost, which means that the first parameter after that, "myapp", is being treated as the controller.
Any ideas as to what might cause this, and how to fix it without moving the entire application into the root of the web directory?
Found the answer with the addition of the following line in my htaccess file:
RewriteBase /myapp
I'm not quite sure why this line is needed (it's completely omitted on the original computer where the application works just fine), but adding it in solved the issue.
This was working because your .htaccess file is at the root directory so by localhost/myapp it was going to its index.php but couldnt find .htaccess in the project's folder
When you deploy a Zend Framework website to a shared host, you usually cannot change the DocumentRoot to point at the public/ folder of the website. As a result the URL to the website is now http://www.example.com/public/.
Apart from choosing a proper host..there's any workaround?
thanks
Luca
If you have access to directories above public, you can put all non public files there.
Otherwise, you can put everything in a subdirectory, and block access to it with an .htaccess file.
Also is the web server root directory the place where you put your site files and later acces them with localhost/file_name in the browser?
If you installed WAMP to c:\wamp then I believe your webserver root directory would be c:\wamp\www, however this might vary depending on version.
Yes, this is where you would put your site files to access them through a browser.
In WAMP the files are served by the Apache component (the A in WAMP).
In Apache, by default the files served are located in the subdirectory htdocs of the installation directory. But this can be changed, and is actually changed when WAMP installs Apache.
The location from where the files are served is named the DocumentRoot, and is defined using a variable in Apache configuration file. The default value is the subdirectory htdocs relative to what is named the ServerRoot directory.
By default the ServerRoot is the installation directory of Apache. However this can also be redefined into the configuration file, or using the -d option of the command httpd which is used to launch Apache. The value in the configuration file overrides the -d option.
The configuration file is by default conf/httpd.conf relative to ServerRoot. But this can be changed using the -f option of command httpd.
When WAMP installs itself, it modify the default configuration file with DocumentRoot c:/wamp/www/. The files to be served need to be located here and not in the htdocs default directory.
You may change this location set by WAMP, either by modifying DocumentRoot in the default configuration file, or by using one of the two command line options -f or -d which point explicitly or implicity to a new configuration file which may hold a different value for DocumentRoot (in that case the new file needs to contain this definition, but also the rest of the configuration found in the default configuration file).
Everything suggested by user "mins" is correct, and excellent information.
WAMP 2.5 provides a default Server Configuration display when you enter localhost into your browser. This maps to c:\wamp\www, as described in previous posts. Creating subdirectories under www will cause Projects to appear on this display. A click and you're in your project.
I have various projects under different directory structures, sometimes on shared drives which makes this centralized location of files inconvenient. Luckily, there is a second feature of WAMP 2.5, an Alias, which makes specifying the location of one (or more) disparate web directories quite easy. No editing of configuration files. Using the WAMP menu, choose Apache > Alias directories > Add an Alias.
WAMP has evolved nicely to provide support for a variety of developer preferences.
If you use Bitnami installer for wampstack, go to:
c:/Bitnami/wampstack-5.6.24-0/apache/conf (of course your version number may be different)
Open the file:
httpd.conf in a text editor like Visual Studio code or Notepad ++
Do a search for "DocumentRoot". See image.
You will be able to change the directory in this file.
To check what is your root directory go to httpd.conf file of apache and search for "DocumentRoot".The location following it is your root directory
this is the path to the web root directory c:\wamp\www
you can create different projects by adding different folders to this directory and call them like:
localhost/project1 from browser
this will run the index.html or index.php, lying inside project1
Here's how I get there using Version 3.0.6 on Windows