Tagged Questions
0
votes
0answers
21 views
Creating SEO URLs with slug and .htaccess
I am trying to create SEO URLs with PHP MySQL and .htaccess.
Here is my PHP code:
echo '<li>'.$icon.' <a href=\'software.php?pid='.softid.''.$slug.'\'>'.$title.'</a></li>';
...
0
votes
1answer
39 views
customize 400-401-403-404-500 errorr page
I am trying to customize 400-401-403-404-500 errorr page on my website by this .htaccess file:
ErrorDocument 500 /500.php
ErrorDocument 404 /404.php
ErrorDocument 403 /403.php
ErrorDocument 401 ...
0
votes
0answers
8 views
Directory index forbidden by Options directive error in Cakephp
Getting Directory index forbidden by Options directive error when trying to upload images but not getting that every time, so not know the exact senario, i have check the error_logs of apache. The ...
0
votes
2answers
43 views
How to ignore a folder from beautiful URL using htaccess
I am developing a website, assuming example.com and a blog located at example.com/blog.
The website language is PHP (I designed and programmed it by myself), and I used wordpress as the blog.
I tried ...
0
votes
1answer
15 views
block access to file while using opendir/openfile etc
i want to deny access to file data.xml for functions like file_exists/opendir/openfile etc
my file test.php contains:
$path="./mydata.html";
if ($handle = opendir($path)) {
}
closedir($handle);
...
0
votes
2answers
26 views
How can I 301 Redirect and Change Url with .htaccess?
I just discovered that I have some duplicate pages that I need to remove but some pages that should not exist are indexed and generating small amounts of traffic. I want to redirect those urls to the ...
0
votes
5answers
42 views
remove php extension using .htaccess
I'm working on script, and want to set links to be as following:
www.mysite.com/sign-up.php
to
www.mysite.com/sign-up
and
www.mysite.com/profile.php?username=abc
to
www.mysite.com/profile/abc
I ...
2
votes
1answer
29 views
How to remove file name from url using .htaccess?
I have follwoing url's
http://127.1.1.1/mysite/username/admin
I want to display like this url
http://127.1.1.1/mysite/admin
Here 'username' is file name.
How it can be possible?
0
votes
1answer
33 views
How to redirect all touch devices to a different site?
I have created a rather complex Superscrollorama animation whith a few responsive breakpoints as well, and it works smoothly on most screen sizes. However, Safari (and as such, Chrome for iOS) works a ...
0
votes
1answer
20 views
add third parameter to wordpress url
I have url http://domain.com/real-estate-news/phuket-luxury-property-in-high-demand-ms
Where "real-estate-news" is category and "phuket-luxury-property-in-high-demand-ms" is the post name .
when I ...
0
votes
2answers
38 views
htaccess rule to parse php@parameter=anything as php file
i want my server to treat files.php@parameter=anything as simple php file
i don't need to use symbol "@" as separator, such as "?"
but i still want to parse files.php@parameter=anything as a single ...
0
votes
2answers
34 views
prevent direct download of zip, tar files through URL
I have a PHP app whose directory has some zip, tar files. I recently noticed that they are available for download directly through the URL. How can i stop that? I think, maybe through .htaccess.
My ...
0
votes
1answer
19 views
Access Drupal7 site in a subdirectory without trailing slash
I have a Drupal7 site hosted in a sub-directory and site can be access following with directory path and trailing slash:
http://mydomain.com/dir1/dir2/ (with the trailing slash).
I’m looking to ...
-1
votes
1answer
18 views
Rewrite URL friendly php file with variable to html [on hold]
Please help me rewrite from: /filename.php?var=value
to
/filename-var-value.html
0
votes
1answer
33 views
how can i add today's date to the .htaccess log file name
I would like to combine today's date to the php errors log files
<IfModule mod_php5.c>
php_flag log_errors on
php_value error_log ...