Upload an image at frontend > Create direction and/or rename filename possible?

What the similar posts (wich your found) are suggesting, is adding a filter in your functions.php wich will handle the filenames for you. All uploaded files will be filtered by this function before the upload will be handled by wp_handle_upload. Add the following lines of code in your functions.php: function wpse_82741_rename_uploaded_file( $image ) { global … Read more

Giving WordPress Its Own Directory together with index.html

Here is the code to put in your functions.php file, it will show the splash-page.php only to outside visitors (by checking the referer). Make a splash-page.php in your current theme directory and edit the domain (example.com) in the code: add_action(‘template_redirect’,’my_splash_page’); function my_splash_page(){ $referer = $_SERVER[‘HTTP_REFERER’]; $referer_parse = parse_url($referer); if(is_front_page()){ // let visitors see the normal … Read more

Moving wordpress from /dir to main folder

Make sure you backup everything then: Move the content of /dir one level up, make sure you move hidden files as well (I care about the .htaccess file and maybe a .git folder) Download Search & Replace for WordPress, upload it to your server Access it with the url: http://www.xclo.co.uk/searchreplacedb2.php Follow the instructions, in brief, … Read more

Impossible to index an upload folder with 10k files

Axel, I would recommend getting an SSH connection to your host. This means that you’ll get a command prompt that you can issue commands. Something like this if you have a linux server: … once you have that, simply browse to your directory and gzip/compress the entire uploads directory: tar -zcf mybackup.tar.gz uploads/ Then once … Read more

Getting Internal server in sub folder pages

you need to create .htaccess file. Create .htaccess file and paste below code in it # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /blog/ RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /blog/index.php [L] </IfModule> # END WordPress

WordPress File Structure

You probably want to create a Page. In that Page’s edit screen, just below the title, you can see the URL that Page can be found at, something like http://country.com/france/ “france” is the slug of that Page, and is highlighted yellow indicating you can edit it. That way the Page can be called “I Love … Read more

How to visit php file in my custom directory under site root directory

Only Apache is “responsible for caring” that your script is PHP. AFAIK, whether you need to use AddHandler or AddType depends on whether your PHP is installed as a module or as CGI. You can try creating .htaccess in wp-mybiz/ folder containg some of the common solutions/workarounds 1) AddType application/x-httpd-php .php 2a) AddHandler application/x-httpd-php .php … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)