Remove index.php from URL in Codeigniter


codetyrant

Open applications/config/config.php and make the following changes :

Replace

With

And add the following code to a new file and save it as .htaccess inside the root folder :

View original post

Advertisements

Get the URL, time and content in WordPress without displaying it


The URL’s of our posts in WordPress looks like: https://blogbysid.wordpress.com/2013/04/26/creating-google-oauth-api-keys-and-developer-key/

Using the_permalink() would generate the link but if you want to get the link only and don’t want it to get displayed, what should we do ?

A lot of of the WordPress function have ‘return’ alternates using get as the operative word.

get_the_permalink() - To get the link
get_the_time() - To get the time
get_the_content() - To get the content

How to remove index.php from url in magento


In Magento if you are getting the url as http://website.com/index.php/electronics/cell-phones.html and you want that index.php is not written on the url i.e. http://website.com/electronics/cell-phones.html.

Then use the following steps:

1) Login to admin section by using the URL
http://website.com/index.php/admin/

2) Then go to “System >>  Configuration >>Web >> Search Engines Optimization”
Use Web Server Rewrites : YES

3) Go to “System >>  Configuration >>Web >>Secure”
Use secure URL Frontend: YES