apache php find original link of permalink - php

I am having a wordpress site on my local server on LAMP. and had a virtual host himalaya.com
I have a link himalaya.com/ganga I want to know how this link searches for the required file from the wordpress directory (himalaya.com).
In the respose headers i found some link himalaya.com/?p=763 and when i opened it, it shows the same link as himalaya.com
Then i tried to search for the file ?p=763, but there is no such file in the directory himalaya.com. So I am confused how apache is getting the file.

Related

About 404 during WordPress installation

I am learning wordpress, I think I have installed it according to the installation instructions, but the result is 404
Download wordpress (ok)
Create a database for WordPress on your web server, and also create a MySQL user with all permissions to enter and modify. (ok?)
Rename the wp-config-sample.php file to wp-config.php.(ok)
Open wp-config.php with your favorite text editor and fill in your database information.(ok?)
Put the WordPress folder on your server where you want to put it(ok?)
Visit wp-admin/install.php in your favorite browser to launch the installer(404)
Why?
Are you using web server to run wordpress site (ex:xampp, wamp v...). Are you change directory of variable DocumentRoot and Directory in httpd.conf point to wordpress directory?

Links not working after Drupal site migration

I moved a drupal installation from one server to localhost. Steps I followed:
Copied whole directory structure from old server.
Exported database from old server.
added files to newdomain/drupal
Imported database
edited settings.php with new database information.
As of right now the home page is working. But none of the links to any of the nodes or any of the admin paths I know seem to exist. I get the localhost home page.
Any ideas ?
do you have .htaccess file in the site folder?
please try with default .htaccees file for your Drupal version

Netbeans PHP - I can't see my web server

I have a wordpress website on my WAMP server, which I made as a project in Netbeans IDE. Everything was working fine untill I changed the name of my PHP project from 'stickpeg' to 'portfolio'. Now when I try to run my project by clicking the green arrow on the menu tab, it displays me a page saying...
Not Found
The requested URL /wordpress/ was not found on this server.
Apache/2.4.9 (Win64) PHP/5.5.12 Server at localhost Port 80
I'm thinking that the error is something to do with my NetBeansProjects folder, as it's not in my wamp folder at all, but in my documents folder! Plus, the project folder in the NetBeansProjects folder is called 'portfolio', which has 3 other folders inside it called config, public_html and test, which are all empty.
Please help, I just want to be able to see my wordpress website running in my browser again.
You have to put the files in the htdocs directory. Apache (e.g. your WAMP server) can't find the files, since there are in the My Documents folder.
Just move the directory wordpress to C:\wamp\htdocs\wordpress (for example).
Never mind. Sorted it out. Apparently I had to change the Site Address URL and WordPress Address (URL) and then go into netbean's project properties -> run configuration and change the project url.

Magento not working after migration server and change URL

I have moved a magento site rackspace windows cloud server to another windows server that have plesk installed.
After migration I have changed my base URL from core_config_data to plesk site preview link and deleted all files from cache folder, Now when I am trying see my site using plesk site preview link firefox giving The page isn't redirecting properly error, on Chrome giving This webpage has a redirect loop error.
I have checked my plesk preview link with other files and see link is working fine but only magento not opening.
Any one know how to fix this?
URL Rewriting depends on your .htaccess file, so there are a couple of things to check:
web/seo/use_rewrites in core_config_data should be true.
when you created your tarball, did it include . files in the root directory especially .htaccess?
If you used tar -cvf archive.tar * then it may have missed them. (Nice "feature" of *nix).
Check that your httpd.conf has AllowOverride All, otherwise your local .htaccess will be ignored.
Did you changed both of "web/unsecure/base_url" and "web/secure/base_url"? if you changed only one - it can be not working.

url with joomla folder

I have downloaded one joomla live site folder.set up configuration file and database .But it's giving me error sever not found.
actually my url is http://local.host/foldername/
But it takes www.localhost.com/foldername/
what is the problem with my folder?what can i do for it?
Add www.localhost.com to your hosts file to point to 127.0.0.1.
On Windows it's in C:\Windows\System32\drivers\etc\.

Categories