0
votes
0answers
34 views

How to remove PHP extension for pages served from a subdomain

I just moved a development site from a virtual machine on my PC to a shared webhost in a subdomain and I'm getting a Forbidden error which I think is due to my .htaccess file. Currently I've got it ...
0
votes
0answers
38 views

Hiding php file extension using .htaccess / rewrite rules

If one want to remove .php extensions he usually do RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^(.*)$ %{REQUEST_FILENAME}.php [L] But if I try to get /page.php I'll see the same content as ...
0
votes
1answer
16 views

Run secondcrack in a nginx server

I am trying to run secondcrack that is a php solution to A static-file Markdown blogging engine in a nginx server (the original was only tested in Apache). So does anybody know how to convert this ...
0
votes
0answers
35 views

.htaccess file is not working in https

i write a htaccess file it is working in http but it is not working on https the htaccess file code is # Turn mod_rewrite on RewriteEngine On RewriteBase / ## hide .php extension # To externally ...
1
vote
0answers
11 views

ToroPHP5 .htaccess Cpanel error: No input file specified

htaccess and framework ToroPHP5 RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond $1 !^(index\.php) RewriteRule ^(.*)$ /index.php/$1 [L] This is ...
0
votes
1answer
42 views

Why does it redirect home?

the following form on my site <form name="vine" action="create.php" method="get"> <input name="id" type="text" value="Vine ID" id="id"> <br> <input type="submit" ...
1
vote
1answer
18 views

ToroPHP nginx php5-fpm configuration

Configurations nginx php5-fpm (change domain.com) server { listen 80 default; server_name domain.com; root /var/www/domain.com; access_log /var/log/nginx/domain.com.access_log; error_log ...
0
votes
1answer
17 views

Make XML file not accessible by surfing to url

I'm using XML-files for the settings of my Cakephp-application. (Located in /files/xmlfiles/). I want this files only be accessible by my application and not by to surfing to it ( ...
-1
votes
2answers
38 views

Rewrite url using htaccess on php sites [closed]

I'm creating an htaccess to rewrite an URL. It's working fine. My code is the following: RewriteEngine on RewriteRule (.*)/ ?site=$1 Original URL : /domain/sites/admin/index.php?site=site1 ...
0
votes
0answers
15 views

add htaccess file in phpmyadmin in xampp

How can I add a htaccess file in phpmyadmin in xampp server ? I have windows 7 operating system. I need this to change php.ini values only for phpadmin for eaxample max_execution_time, ...
0
votes
2answers
31 views

how to rewrite language parameter in htaccess?

how to rewrite language parameter in htaccess? I want to set the second part of my url as my site language, I write the htaccess code bellow but when I print $_GET, found no $_GET['language'] why? by ...
2
votes
2answers
72 views

Creating a Pretty URL

It almost is similar to how to create pretty urls but, it does not seem to work for me. Here is my url: http://localhost/pr/ajax/ajax_load.php?task=get_blob&blid=199 How do I convert it to: ...
1
vote
3answers
18 views

mod_rewrite, Adding a Condition

I have this .htaccess Options +FollowSymLinks RewriteEngine On RewriteRule ^(.*)$ zone.php [L] Right now it works pretty well. How can I make this RewriteRule not work in a certain directory? I do ...
1
vote
2answers
35 views

How would I do this mod_rewrite to work as I need?

Realize there are other questions posted about this, but I wasn't able to find one that worked specifically for what I need to do. Apologies if I overlooked a potential solution. This is how I would ...
1
vote
3answers
38 views

URL Rewriting friendly URL with htaccess

I'm interested in rewriting a url which is already "friendly" in order to clean up what is already in the path. At the moment, I have a URI which points to http://example.com/page/index/home, but ...
0
votes
0answers
34 views

Redirect based on referral page?

I have a page site localhost/abc/page.php here I have an .htaccess redirect file, which redirect all requirest to localhost/xyz/check.php check.php checks if user is in record, then send back to ...
3
votes
4answers
61 views

Writing a mutiple language website: the webdesigner's (best) options

They are some questions already about this on stackoverflow, but none is really clear about the 'best practice'. For the content design, what are the options and what is the better option? Some ...
0
votes
1answer
20 views

.htaccess 500 error after login with AuthType Basic

Here's my .htaccess file: AuthType Basic AuthName "LOG IN" AuthUserFile .htpasswd Require valid-user After logging in, I get a 500 error. If I clear the .htaccess file, it works fine. Any ideas?
0
votes
2answers
23 views

.htaccess causing 500 error

I have only a single line in the .htaccess file: RewriteEngine On Taking that line out makes the error go away. I've checked as many places as I know of for the AllowOverride rule (but I know next ...
0
votes
1answer
20 views

Rewrite Friendly php URL for multiple languages using .htaccess file

I have a couple websites that I built a CMS for that will save the languages in an XML file and depending on the page and language selector, it will show the correct data. I cuurently have 8 different ...
1
vote
1answer
27 views

Htaccess redirect some URLS to one domain and all other urls to another one

I need to redirect some URLS to one domain and all other urls to another one. For example the redirect code which should redirect mydomain.com/?p=221 and mydomain.com/?p=222 to Google and all other to ...
0
votes
1answer
17 views

How to do rewrite rule for PayPal IPN (htaccess)?

Been at this for some hours now. I need to redirect http://www.mywebsite.com/index.php?option=com_acctexp&task=paypal_subscriptionnotification&Itemid= to ...
0
votes
2answers
26 views

htaccess rewriting condition/rule for subdomains

I would like to rewrite all index files like /index in my subdomain as well as in my domain. Up to this point there was no need to use a subdomain. Now the problem is a rewrite rule from the htaccess ...
0
votes
0answers
19 views

.htaccess redirects to nowhere but still works

This is the htaccess file in the root of the server and I am trying to find the location of /folder/subfolder/ but I cannot understand how the rewrite rule is redirecting traffic? What is this ...
0
votes
1answer
20 views

Is it necessary to validate htaccess variables output

Is it necessary to validate what come in from htaccess rules? RewriteRule ^/?([0-9]{4})/?$ /run/run.php?year=$1 [NC,L] This does http://www.localhost/2014 In this case, I've written the htaccess ...
0
votes
1answer
24 views

.htaccess url rewriting

This is my .htaccess. It redirects /contact to index.php?page=contact This works perfectly. But with this .htaccess, if someone puts /contact.php, they'll get an error. Options +FollowSymlinks ...
0
votes
2answers
28 views

.htaccess Friendly URL prevent redirect

I have a website which doesn't use friendly URLs and I would like to change that. My links so far are like this http://www.example.com/?l=EN&m=o36ASkkEVi, where the l variable contains the viewing ...
0
votes
0answers
25 views

301 redirect mod rewrite with existing .htaccess code

Not a programmer here, but need to do some coding for SEO purposes, so help from experts is hugely appreciated. I'd like to use 301 redirect to redirect my non-www domain to www in .htaccess. I've ...
0
votes
0answers
31 views

Browser requesting another page but site shows index page content

I want to run a page form the root directory but its shows the index page content on this page. Those pages works fine that came form the database but when i tried to execute any page form root ...
1
vote
1answer
19 views

How To Selectively Load External Images Using Htacess

I want to load all the pictures except 3 ones from external site by certain rule. The remaining 3 should be loaded from default image. RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} ...

1 2 3 4 5 171
15 30 50 per page