62 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for showman13

Hi All, It has been a long while since I've been here, but I have hit a wall/mind block/ whatever you want to call it. This should be simple, but drawing a complete blank. I have an affiliate website where my clients can refer us to their friends and receive …

Member Avatar for Dani
0
284
Member Avatar for FarrisFahad

I want to redirect my users to my mobile site. My mobile site is in a subfolder instead of a subdomain. Here is how I want it to work ... Request sent to: https://www.picturepunches.com/hot Redirect to: https://www.picturepunches.com/mobile/hot I also don't want to effect the images on that page. So I …

Member Avatar for Australia_1
0
5K
Member Avatar for Aamit

hi, I am created 3 tables for 1> category 2> subcategory 3> projectdetail In my website folder structure root-index.php, header.php footer.php folder- about -index.php and other files folder - project- index.php folder - err- 404.php In my php page project/index.php i make left column dynamic, i.e call value from table …

Member Avatar for Sapna_3
-1
8K
Member Avatar for Aeonix

I already tried couple solution from Google, but some of them didn't work (at all), others resulted in weird bug, where HTML page was loaded, but assets (CSS and images) didn't. Other times there were too many redirects and page freaked out. I have account on Cloud Flare, but both …

Member Avatar for Dani
0
494
Member Avatar for shany0786

I have a admin folder where various .html files are there what happening is when i type http://mydomain.com/index.html it opens up a page and various other page but i want to put restrictions that if user is logined then only he can open other pages otherwise not. What i know …

Member Avatar for TexWiller
0
315
Member Avatar for gentlemedia

Hi guys & dolls, I'm working on a website locally with MAMP and the directory tree is the same then that of the dev directory on my web server. `projects --> ecwc --> concept` But I've set the 'projects' directory on my webserver as a subdomain and this screws up …

Member Avatar for gentlemedia
0
370
Member Avatar for moneeshot

I am helping a friend switch from Godaddy quick shopping cart to magento. Unfortunately the Godaddy cart automatically creates product and catalog URLS. Using caps, dashes and underscores. I can dupe the link text but magento only allows dashes and no caps, I'd rather not use caps or underscores anyway. …

0
259
Member Avatar for davidjennings

Hi I am trying to redirect a url in the htaccess file. RewriteEngineOn RewriteRule ^wakins.co.uk$ http://www.watkins.co.uk [R=301,L] and I have also tried this RewriteEngineOn RewriteRule ^/wakins.co.uk$ http://www.watkins.co.uk [R=301,L] Thanks in advance D

Member Avatar for davidjennings
0
291
Member Avatar for fireburner29

Hi, How to make visible directory using htaccess? am using this in my htaccess. am getting below error. Server error! The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script. If you think …

Member Avatar for diafol
0
347
Member Avatar for nibbler

Hi I have a twiiter user linking to a specific page on my website which I would like to redirect to my home page. From the internet I have found and adapted the following code RewriteCond %{HTTP_REFERER} (twitter.com) [NC] RewriteRule myloginpage.php http://mywebsite.org/index.html [R,L,NC] Unfortunately this doesn't do anything. Can anyone …

Member Avatar for nibbler
0
343
Member Avatar for mattster

Hi All, Over the years I have smashed through God knows how many brick walls with `.htaccess`, and all I've learnt is don't even try to make it complicated as nothing is ever simple. I have therefore resorted in recent applications to using `mysite.com/index.php/category/sub-category/create/` etc. and PHP to get hold …

Member Avatar for mattster
0
327
Member Avatar for amith_ami

hi all... how to rewrite this url http://mydomain.com/cms.php?cms_id=about to http://mydomain.com/about without any error using .htaccess rewriterule. pls help me to solve this.. tnx in advnc...

Member Avatar for amith_ami
0
215
Member Avatar for 68thorby68

Hi, I'm thinking of using the htaccess file on my apache server to add a layer of security to the payment processing on my site. I am considering the 2 actions below, not sure how yet, but thats where the trial & error & learning begins. 1. rewrite the url …

Member Avatar for iamthwee
0
320
Member Avatar for mattster

Dear All, This must be a very common problem, but yet nowhere on the internet wishes to display a working answer. I am in a sticky situation. I have the following .htaccess file on my local webserver: http://localhost/testsite/.htaccess DirectoryIndex home.php?view=home RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} …

Member Avatar for mattster
0
350
Member Avatar for ZER09

Hi Is there way to enable the mail function without access to php.ini? The mail function was disable by my hosting provider, and there is no way to enable it because it was shared hosting. I already search in google how to enable mail function, but got nothing. I was …

Member Avatar for almostbob
0
563
Member Avatar for Some-Jackass

Hi. I'm still a newbie on apache/linux, so I'm hoping that my problem is relatively easy for more experienced people to solve. I have 4 folders, each containing an .htaccess file to restrict access to the PDF files they contain. My problem is that whenever I edit the content of …

Member Avatar for Some-Jackass
0
289
Member Avatar for foreba

I keep trying to convert the web.config file from my old server to the new one, which is using Ubuntu server, but I can't get the things done right. Can you guys help me to convert the code bellow to .htaccess? <rewrite> <rules> <rule name="Rule IIS7"> <match url="^([a-zA-Z0-9-_.]+)(___)([0-9]+)(.*?)$" ignoreCase="false" /> …

Member Avatar for marwankhoueiry
0
887
Member Avatar for joshl_1995

Hello Community, I was wondering if it is possible to use an ID ($_GET) after a file in the address bar so it would look like this http://example.com/file.php/ID_HERE Instead of http://example.com/file.php?id=ID_HERE I know there is a way of doing something like that but I'm only getting it to work on …

Member Avatar for joshl_1995
0
470
Member Avatar for simplypixie

This is driving me insane - I have certain links that are re-written on a site that work perfectly fine (and I am not new to re-wring urls) but have just found that some others aren't and I cannot fathom out why. What works: // The link <a href="/shop/<?php echo …

Member Avatar for simplypixie
0
265
Member Avatar for Tinnin

Hi all, I am running through the book "PHP Advanced and Object Oriented Programming" by Larry Ullman and I am currently trying to use a mod_rewrite to change my GETs to look like standard URLs. I am running the site on my localhost. My .htaccess file is being read (tested …

Member Avatar for Tinnin
0
223
Member Avatar for PF2G

Hi, i'm trying to do clean url's using .htaccess but i'm having problems. Here i have my .htaccess: <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^([a-z]+)\/([0-9]+)\/?$ parameter_letter_and_number.php?param=$1&param2=$2 [NC] RewriteRule ^([a-z]+)\/?$ $1.php [NC] RewriteRule ^([0-9]+)\/?$ parameter_number.php?param=$1 [NC] RewriteRule ^([0-9_]+)\/?$ parameter_number_and_underscore.php?param=$1 [NC] </IfModule> Here is my parameters page so i can test: <!DOCTYPE HTML> …

Member Avatar for NardCake
0
445
Member Avatar for joshl_1995

Hello Community, I was wondering if there is a way to make a page look like a subdirectory. This is what it would look like now http://example.com/page.php this is what i want it to look like http://example.com/sub/page.php But i don't want to put the page.php in a subdirectory i just …

Member Avatar for joshl_1995
0
189
Member Avatar for DaveyMoyes

Hi everyone... I am just geting to grips with htaccess RewriteRules I have the following rule that redirects users to website.com/folder RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([a-z0-9]+)\/?$ /webstores/$1/ [L] But the url is missing the trailing forward slash / when I try and open php files …

Member Avatar for pixelsoul
0
189
Member Avatar for mattster

Hi all, I am using an apache web server, and this is the raw url: `http://localhost/mysite/index.php?view=contact` how do I convert that to: `http://localhost/mysite/contact/` My current .htaccess is saved in `http://localhost/.htaccess`, and reads as: RewriteEngine On RewriteRule ^mysite/(.*)/$ /mbs/index.php?view=$1 [L] and I get a 500 internal server error? Thanks for the …

Member Avatar for LastMitch
0
313
Member Avatar for randomkid73

Hi all, I'm having some issues with RewriteRules conflicting in my .htacccess file. For starters, here's the file: <IfModule mod_rewrite.c> Options -MultiViews RewriteEngine On #Start forum rules RewriteCond %{REQUEST_FILENAME} !-f RewriteRule \.(jpeg|jpg|gif|png)$ /public/404.php [NC,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] #Start wiki rules RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php …

Member Avatar for randomkid73
0
206
Member Avatar for lukas.vandendijssel

This .htaccess throws me a 500 error. I've Googled/tried everything. RewriteEngine on RewriteRule ^([0-9]{6})$ decode.php?shorturl=$1 [L] It's for a URL shortener. I am new to this stuff.

Member Avatar for diafol
0
438
Member Avatar for ryantroop

Hi All! So, I have a shared windows host with IIS 7 with godaddy, so that I can use MSSQL/TSQL (which, as I understand it, is not available with Linux). However, my server configuration education was with Linux, and focused on the wonderful all encompassing .htaccess file to configure environment …

Member Avatar for stormal1
0
237
Member Avatar for chr.s

Hello, I'm trying to find a way of including a htaccess rewrite to redirect anyone visiting *http://site.com* to *http://www.site.com*. I've tried the following... RewriteEngine On RewriteCond %{HTTP_HOST} ^(www.)?site.co.uk [NC] RewriteRule ^(.*)$ http://www.site.co.uk/$1 [R=301,L] ...but it broke the paths to all of my assets - adding a "www" where there shouldn't …

Member Avatar for chr.s
0
212
Member Avatar for Borzoi

I have a server which is hosting just a single site and because of this, I intend to redirect all traffic from domains which isn't mine to my domain. For example, if a random person decides for some reason to point their domain to my server, when my server gets …

Member Avatar for Borzoi
0
299
Member Avatar for joshl_1995

Hello Community, I was wondering if there is a way to restrict sub directories from accessing the parent directory (the main directory where all my website file are stored) and from having any interaction with the previous folders (so once there in the child folder they can't leave it eg. …

Member Avatar for pritaeas
0
289

The End.