Tagged Questions
0
votes
1answer
18 views
How to make website to redirect to a page when subdomain not founds
There is an issue in my website that when I try a domain like: abc.domain.com when subdomain abc is registered, everything works fine. But when I type xyz.domain.com when subdomain xyz is not ...
-1
votes
3answers
25 views
htaccess redirect not working
so I have this htaccess entry:
RedirectMatch /([a-zA-Z0-9]+).php /dirA/$1.php
The goal is that any .php that is on the root directory should be redirected to /dirA/*.php
eg. suppose I make the ...
-1
votes
0answers
32 views
URL check against database [on hold]
I'm new to PHP/Apache. Can someone explain how can I resolve this:
I have a table containing the fields IdCity and CityName.
I have the URL http://mywebsite.com/Paris-1.htm
In my .htaccess file I ...
0
votes
1answer
8 views
How to Create .htaccess rewrite rule ignoring authentication requests
I am running cpanel with apache 2.2.25 and have the following site custom configuration setup
WSGIScriptAlias /trac /usr/share/trac/cgi-bin/trac.wsgi
<Directory /usr/share/trac>
...
1
vote
2answers
32 views
How to change my mysql table prefix via htaccess file? [on hold]
I have a website in php and mysql. I have updated the table prefix in mysql. Here I need to change all table names with prefix code without changing the source code in php.
How can we do this via ...
0
votes
1answer
17 views
How to mask the URL with htaccess in zend framework 1.10
Hi I Have to create the URL something like "http://www.contract.com/user/profileview/index/MQ==" to "http://www.contract.com/profile/india/MQ==". We have tried the masking with codeignitor and ...
-2
votes
0answers
18 views
htaccess url rewriting sending all links to index.php
I have an htaccess url rewriting functionality on my web, but at the moment it is redirecting all links to index.php.
Here is the file.
RewriteRule ^demo/contactus\.html$ /demo/contactus.php [L]
...
0
votes
2answers
53 views
How to hide directory name from URL using .htaccess
Here is my site url structure as follows: http://www.sitename.com/new/about-us .
What I really want to do now is hide the directory name 'new' from the above url, but the admin url should remain ...
0
votes
0answers
20 views
An ERROR 404 - PAGE NOT FOUND when the URL is rewritten using mod_rewrite for proxying
This directive will redirect example.com into example.info/es/test.php :
RewriteRule ^$ http://example.info/es/test.php [R]
This directive will make example.com ERROR 404 - PAGE NOT FOUND instead ...
2
votes
1answer
24 views
.htaccess Rewrite Parent Folder to Subfolder
I am looking to rewrite the url so if someone lands on a parent folder, they will be redirected to its subfolder. http://www.domain.com/portfolio should take me to ...
-3
votes
1answer
25 views
How to secure my server | Block external scripts to modify my php files [on hold]
I have heard there is a way to block these function such as edit/rename/mass file injection (by intruders/external script injections). Using disable_functions/ php safemode etc... Using php ini or ...
0
votes
1answer
12 views
“Invalid controller specified” error in zend framework 1
I have a Zend Framework project previously half done by other programmers. With it another application is directly bridged into Zend's public folder under public/hrm folder.
The application seems to ...
0
votes
1answer
29 views
htaccess Mod Rewrite rule for multiple URLs and PHP $_GET's
I have these mod rewrite rules in my htaccess file:
RewriteEngine On
# Displays directory if there is no / on the end of the URL
RewriteCond %{REQUEST_URI} !^/admin [NC]
RewriteCond %{REQUEST_URI} ...
1
vote
3answers
54 views
PHP files without extentions
Is it bad to use:
ForceType application/x-httpd-php
and to save files without a file extention (e.g. index instead of index.php)? The intention is to hide/remove .php from the URL and to stop users ...
0
votes
1answer
12 views
htaccess NC flag not working with RewriteCond
I have the following setup:
user types in domain.com/weeklyad
file named weeklyAd.php in the root of my directory
and the following in my .htaccess file:
RewriteCond %{REQUEST_FILENAME} !-d
...
0
votes
0answers
27 views
htaccess with RewriteEngine On slowing down page load
I have .htaccess enabled only for two rewrite URL tasks but I found that it is slowing down the website. Is there any alternative to using .htaccess? I don't have access to httpd.conf on the server as ...
0
votes
1answer
20 views
Multiple Rewrite rules not working in .htaccess
This is my code in .htaccess :
RewriteEngine On
RewriteCond %{THE_REQUEST} \s/+product\.php\?course_name=([^\s&]+)&course_id=([^\s&]+) [NC]
RewriteRule ^ /%1%2? [R=301,L]
RewriteCond ...
0
votes
3answers
22 views
Redirect incoming url to a subdir [htaccess]
I'm struggling with this from hours...
what i have is a domain with (virtual) subdir based on languages so domain.com/en for example.
The point is that it is indexed in goggle and this structure is ...
2
votes
2answers
42 views
URL Rewriting and redirection issue
RewriteCond %{HTTP_HOST} ^seedscrew\.org\.crew$ [OR]
RewriteCond %{HTTP_HOST} ^www\.seedscrew\.org\.crew$
RewriteRule ^crew/([A-Za-z0-9-]+)/ ...
0
votes
1answer
28 views
Url rewring using .htacess
How can i change URL by using url rewriting with help of .htaccess
Below are the URL(s),
FROM:
http://www.test.xyz.com/ab/web/pds/dispall/web/web-design
TO:
...
0
votes
1answer
41 views
Codeigniter + htaccess for index.php + subdomain not working
I have directory structure on my production server as:
public_html/www # www.digicreek.com
public_html/educonnect # educonnect.digicreek.com
...
0
votes
1answer
35 views
Two sites on single domain [on hold]
I am migrating from my old site to my new site.
So half the content is on the old site and half is on the new site.
The problem is I need both to be served on the same domain without anyone knowing ...
1
vote
1answer
20 views
mod_rewrite /$variable/file.php
I've been trying to attempt this, but I am unable to yield any results. I'm trying to rewrite a variable into a "directory" in the url to multiple files.. I better explain this is what I mean.
...
3
votes
2answers
38 views
500 Internal Server Error when trying to use ErrorDocument to handle request
I have this .htaccess file:
Options -Indexes
RewriteEngine on
ErrorDocument 404 /404.php
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^([^/]*)/?(.*)$ ...
1
vote
3answers
29 views
Stop direct access to all files in a folder, but allow ajax requests
Not sure if this is possible, but...
Lets say i have process/login.php
if a user visits that page directly i have a check to see if the user has come from posting a form etc. If not, they get 404'd.
...
1
vote
1answer
23 views
Kohana 3.3 Routing Issue - .htaccess?
I have the following bootstrap.php routing (its the default):
Route::set('default', '(<controller>(/<action>(/<id>)))')
->defaults(array(
'controller' => 'Index',
...
0
votes
0answers
21 views
Dynamic Sitemap for Google Webmaster Tools
I want to make a dynamic sitemap for Google Webmaster tools. But for some reason, I can't make it work. I write some lines in the htaccess for these purposes (RewriteRule), and it work fine. In fact, ...
1
vote
1answer
21 views
Add $_GET-vars to a rewritten URL
I have several URLs which are dealt with by rewrite rules. Basically I want to add some $_GET-vars to a rewritten URL.
Say I have:
http://www.domain.com/search/the-netherlands/overijssel/
I would ...
1
vote
1answer
19 views
PHP clean URLS (.htaccess) curl from other hardcoded application
One of my application has hardcoded hitting on this url
http://192.168.2.190/smapi/get?userid=blah&paword=blahblah&service=bahblabblah
Now on my CentOS machine I kept file get.php under
...
2
votes
1answer
19 views
Redirect all URL's in host with multiple domains on the same server
i have the following issue.
I'm using a shared server on godaddy. and i have more than one site on the same server.
I need to redirect all urls from one of the sites to another URL within the same ...
0
votes
1answer
49 views
modrewrite not working on wamp server
mod rewrite is not working with wampserver. My .htacess file is as follow
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ public/ [L]
RewriteRule (.*) public/$1 ...
0
votes
1answer
25 views
Folder and files are there but I get 404 error [on hold]
I accidentally moved a folder on my server through my ftp client. It contained stylesheets and css files. So it broke my site. I realised it and moved the folder in the root again. But even still I ...
-1
votes
1answer
24 views
Redirecting to a specific file from all subdomains using htaccess
I want to redirect traffic to a specific file when user requests a.domain.com/index.php or b.domain.com/index.php it will redirect to domain.com/index.php
0
votes
1answer
27 views
.htaccess throwing my website in disarray
Something odd is happening to my website. I added a DirectoryIndex wp/index.php to my .htaaccess. It works fine in that my home page is now index.php however there was a side effect. Now, when I go to ...
0
votes
0answers
25 views
setting up apache to redirect all subdomains to a specific file [on hold]
I want help that how to setup apache to redirect all the subdomains to a fixed file but the URL remains same like: when a user request the a.example.com or b.example.com it will be redirected to ...
0
votes
3answers
31 views
Site removing www from URL/address in magento Hosted on Plesk server
I posted this question on magento.stackexchange but not get my solution so posting here.Can view on this link. I want that user can access my site with or without www.But it didn't work with www.
My ...
1
vote
2answers
36 views
Give error 404 on purpose on an existing url
I received an abuse complaint from my hosting company because a spammer is sending phishing emails linking to a gif in my domain.
Unfortunately the image is linked with a thumbnails php page and I ...
2
votes
1answer
32 views
About URLs using REWRITE in PHP
I have a PHP file and I don't know how to rewrite its URL when 'Borrow Book' link is clicked. In the url, I want the names of the input fields to be posted, not its input values. I have here some some ...
1
vote
0answers
20 views
Magento layered navigation category Url: LINK NOT WORKING
There is a code into filter.php file that is
<?php foreach ($this->getItems() as $_item): ?>
<li>
<?php if ($_item->getCount() > 0): ?>
<a href="<?php echo ...
3
votes
3answers
58 views
Remove .php and id from url and replace with slash
i have tried lots of for url rewrite rules in htaccess but i am stuck now. i have to change this url
products.php?id=31
to
products/31
i have used
Options +FollowSymLinks -MultiViews
# ...
-1
votes
2answers
13 views
.htaccess rewrite mulitple get params for API [on hold]
Current API usage: http://api.mydomain.com/v1/names?gender={gender}&age={age}
What I want usage to be: http://api.mydomain.com/v1/names/{gender}/{age}
Can I use .htaccess to rewrite this URL?
1
vote
1answer
27 views
.htaccess doesn't rewrite the URL as it should
I have the following .htaccess file:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+)/$ $1.php
RewriteRule ^([^/]+)/([^/]+)/$ /$1/$2.php
RewriteCond %{REQUEST_FILENAME} !-f
...
0
votes
0answers
46 views
Upload can't ecxeed more than 200MB :/ using html and have edited php.ini and everything
I have xenforo and yetishare. In both, when i try to upload files around 256 mb, the progrss bar starts, goes till 150mb + and then the progess bar again comes back to 0% and start uploading again. It ...
-6
votes
0answers
39 views
Want to Redirect .html Pages to .php From .htaccess File [on hold]
My whole site is using .html extension in urls
http://ilovehdwallpapers.com/movies-desktop-wallpapers.html
I want to to change .html to php
Please provide me code for this to put in .htaccess ...
0
votes
2answers
55 views
Do variables sent using POST get sent to PHP if using mod_rewrite?
How do sites such as Stack Overflow submit forms using action="/questions/ask/submit"?
I would've thought mod_rewrite would lose the $_POST vars?
.htaccess
RewriteEngine On
RewriteCond ...
1
vote
2answers
29 views
How to Pass image url as parameter in .htaccess
here is my .htaccess code
Options all -Indexes
<Files .htaccess>
order allow,deny
deny from all
</Files>
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
...
0
votes
1answer
41 views
fuelphp can't access the page ( .htaccess is not working… )
First of all, i'm new to FuelPHP, so it will be something very easy but i can't find the answer on the internet so i'm hoping that you guys can help me.
The thing is that i'm following THIS tutorial ...
0
votes
1answer
24 views
carry values from Dynamic URL to Static URL in htaccess
Dynamic URL :
http://sample.com/articles.php?id=1&name=abc
Static URL :
http://sample.com/article/
I need the id and name in the static URL hidden.
I tried with the below code in htaccess
...
0
votes
2answers
29 views
working with symbolic link before the controller/method in codeigniter
i just needed some help i think its about time to ask some good felas for help.
here's my situation, i've been trying to use a symbolic link to fake my url just like this.
...
0
votes
2answers
55 views
500 internal server error on linux web hosting server
Bought a linux web hosting server, uploaded my php files
Accessing www.domainname.com keeps on showing '500 internal server error'
No error logs are generated - tried including ...