Hello guys I have some websites I'm currently building but I have a problem...I have pages such as blogPosts.php?postID=7
I would love something like blogPosts.com/post title
Meaning I dont want people to see the variables I'm passing..
Same applies to a couple of other pages. I was told that permalinks is the key but everywhere I check, all I see is Wordpress but I am designing my site from scratch.
I'm running XAMPP from my pc.
I would really appreciate any help..
Thanks a lot
It sounds like you want to make "clean" URLs.
You can do it using Apache configuration files and PHP.
Here's an article which will tell you how.
You need to look int into apache mod_rewrite for starters.
Related
I made a beautiful website for my boss and told my boss that the site was built using WordPress.
Now my boss is mad at me for doing it in WordPress and wants the website to be redone in PHP instead.
I know WordPress is a PHP framework, but it is beyond my capability to make my boss understand this.
I have then decided to make my website look like a core PHP Website.
I do not plan on telling this to my boss.
One of the processes involves making the URLs have a .php extension at the end.
I found that WordPress implements "pretty URLs" and I need help in making changes to my .htaccess file so that my URLs look have a .php extension.
The version of my WordPress site is 4.8.4.
I am also disabling the wp-admin login so that it does not look like a WordPress website. Any other tips to make it look like a core PHP website are also welcome.
Thanks in advance.
First I would like to express that it is not a good idea to mislead your boss by simply changing the permalinks to include a .php extension. It is worth noting that even a website built with plain PHP can be configured to have pretty permalinks.
If you are intent on doing this, there are WordPress plugins that could possibly help you with this attempt. One such plugin is called .php on Pages and can be found here: https://wordpress.org/plugins/dot-php-pages/
I wanted to try out bold cms on my localhost.
I have installed bolt cms on localhost/test (subfolder)
The admin section works great, but when I try to visit the actual site all the paths are incorrectly. Bolts tries to load different css and js files like this:
/test/public/test/public/theme/base-2016/css/theme.css
While it should be
/test/public/theme/base-2016/css/theme.css
Im sure this is easy to fix but for some reason i cant find a fix for this
Thanks in advance!
You need to put Bolt's public folder in your test folder. And put Bolt's other files one level up.
This is described in the docs where you can also find answers to other web server questions regarding Bolt.
I'm looking for a web-based version of the app below:
http://www.fileseek.ca/
Any ideas on where I could find/install something like this? My objective is to be make it easier for my developers to search for and find specific terms inside PHP/HTML/CSS/etc. files.
Thanks in advance!
You can check out
OpenGrok. We are very happy with it.
If you want to play around, write some code in Java, and customize, you can try playing with
Apache Solr
I apologize in advance if this issue has been posted before. My problem is that my programmer had to bail on my project due to personal reasons and left me alone with a 95% finished site. I have some basic experience with ASP classic but PHP is fairly new to me.
FireFTP scr_shot: https://www.dropbox.com/s/9lws1u0sl8k93rg/fireftp_scr_shot.jpg
To shorten it up; (with Xampp installed) I have downloaded my site to the hard-drive and is now trying to get it work on 'localhost'. Immediately I sense the absence of an index-file.
Do I need to make one myself for the use in localhost? In that case, what am I looking for?
Thank you in advance.
First if you want to make an index-file of your current website, you have to put all your pages in a folder in
xampp/htdocs/
e.g
C:\Xampp\htdocs\mywebsite
then after you make a directory just visit the url like this:
localhost/mywebsite
, remember to put an index file inside the mywebsite folder.
It turned out that there was a MYSQL-database behind the site which I had no idea about or any knowledge of how to get around.
I had the database taken off and written the code into the site-files.
Afterwards everything worked as laid out above comments.
I'm literally just starting to throw a site together today, so I don't even have much to work with yet, but I wanted to throw this out there so I'll have the information when I get there. I'm using WAMP (not sure which version, but downloaded within the last 6 months) and CodeIgniter 2.0.3. How do you manipulate the URL to do the following:
www.mysite.com/forums ==> forums.mysite.com
www.mysite.com/pc ==> pc.mysite.com
...
Would this be something that gets done with the htaccess file or some other way? And if it is the htaccess file, can someone provide specifics? I've looked into some sites that try to explain the htaccess file and they just confuse the crap out of me. :) lol. Oh yeah, and how will that look while looking at it on my local host? Currently my url looks like:
localhost/nothingbutcards/
Thank you all very much, hope you're enjoying your weekend.
Along with the reference material provided, the below should be a good starting point. It's an HTACCESS approach.
http://terriswallow.com/weblog/2008/htaccess-redirect-a-directory-to-a-subdomain-and-force-www/
I also wanted to mention, some web hosts now have this as an option in the configuration panel. Mine does, so I can go in, specify a subdomain and the path on the site it points to, and I'm done.