Tagged Questions
0
votes
0answers
12 views
.htaccess rewrite rule foreign characters
I have a site with a page www.domain.com/profile.php?username=|INSERT USERNAME HERE|
Currently, I am able to shorten the URL to www.domain.com/|INSERT USERNAME HERE| with latin (alphanumeric ...
1
vote
0answers
16 views
Hostgator php 5.4 upgrade in htaccess throws error 404
I have a project hosted on Hostgator. I need PHP 5.4 so, as they require, I add the following line to my .htaccess file:
AddType application/x-httpd-php54 .php
The issue is that with this line, any ...
-5
votes
0answers
29 views
How to shorten URLs of site.ru / one / two / three / four? [on hold]
help please
i need shorten URLs
site.ru/one/two/three/four
do
site.ru/two/three/four
but keep
site.ru/one/ site.ru/one/
0
votes
1answer
15 views
htaccess rewrite - rules ignored?
So I have an API on my system, running on the domain "system.com", the api runs on "api.system.com", but is hosted on the same server.
The aim of my .htaccess is, to redirect all calls that contain ...
0
votes
1answer
16 views
Rewrite URL with request variable using .htaccess
Please help me. I need to rewrite this url
http://example.com/topusers.php?sort=post_count&time=month
into this style
http://example.com/top/post_count/month
I'm using this in .htaccess but ...
0
votes
0answers
15 views
a 301 Moved Permanently error was encountered while trying to use an ErrorDocument to handle the request ? Any Solution
Im having a problem on my site http://streetgamerstournament.com/
some pages show '301 Moved Permanently error' randomly .
For eg the error comes on about us page , blog page etc
here is the ...
-1
votes
0answers
18 views
redirect to domain name without filename
I am new to use htaccess files.But following code on using redirect to domain name.I have www.test.com/index.php it will redirect to www.test.com
I am passing in url www.test.com it is fine redirect ...
0
votes
1answer
21 views
.htaccess rewrite for php logic
I'm building an FAQ section. It will have separate sections
SECTION1
Q1
A1
Q2
A2
SECTION2
...ETC.
I am trying to add some PHP logic that will work with .htaccess rewrite.
The page will have ...
0
votes
0answers
9 views
Apache parsing %2B and other characters not as expected
I have htaccess file which has
RewriteRule ^(.*)$ index.php?file=$1 [L,QSA]
Now if pass a value suppose
tNX3iJ9zraIzrrxzFMKKIxEU%2BB0IBhoyihXuFxLgbOE%3D
Then echo out in php file output i get ...
0
votes
0answers
10 views
embedded image adding trailing slash
I have an image which will be served by a php file with base_64 and header('Content-Type: image/png').
The image shows perfectly except it adds a trailing slash as if it is a directory.
...
-1
votes
0answers
24 views
How to decode URL from form?
I've made a kind-of prank page in PHP that takes another webpage, changes the text to look like a hillbilly wrote it (in Swedish), and randomly watermarks some the images with the face of a guy.
...
1
vote
3answers
26 views
How to use htaccess to make root and /index.php display as /news?
My news page can be reached on these urls: www.domain.com/index.php and www.domain.com/ (both exactly the same page).
I want to make these urls a little prettier, so I want them both to redirect to ...
0
votes
2answers
17 views
htaccess Rewrite for clean URLs 2 get variables
Url rewriting doesn't seem to work.
I want to rewrite http://www.domain.com/files.php?key=file&id=10 to file/10
So this is the code I wrote in my .htaccess file:
RewriteEngine On
ReWriteRule ...
-2
votes
1answer
22 views
URL rewirte directory names [on hold]
I have my website directory like this:
application
assets
system
And under application I got this:
help
contact
I created a file inside each one called index.php so the URL can look something ...
0
votes
1answer
28 views
How to create a subdomain using htaccess
I need to create a subdomain mobile.example.com that this subdomain to open through directory "mobile" example.com/mobile.
I try to use so:
RewriteCond %{HTTP_HOST} ^(www\.)?mobile\.example\.com$
...